if(ASCII(LEFT('C01',1)) >=ASCII('A') and ASCII(LEFT('C01',1))<= ASCII('Z')) print '1' else print '2'