A,B=map(int,input().split()) O=2 if B<23 or 25