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