while 1: n=input() if n>2014: print n