N = [0]*1000 K = [0]*1000 for i in range(0, 1000): N[i], K[i] = map(int,raw_input().split()) print "500"