for i in range(1000): print("{0:03d}".format(i)) if input()[0] == 'u': break