while 1: n, m, d = list(map(int,input().split())) if n>95000: print(n) else: print(m)