Finding CB numbers

How the sample input has two CB numbers