s = input().split() s1 = 0 for i in s: if int(i) > 60: s1 += 1 if s1 == 1: print('1') else: print('0')