import heapq from heapq import heappop,heappush,heapify from sys import stdin, setrecursionlimit input = stdin.readline readline = stdin.readline M,D=map(int, input().split()) c=M*100+D if 822<=c: print(24) else: print(23)