#coding: utf-8 A = int(input()) B = int(input()) if 40 // (B//A) < 3: print(1) else: print(2)