for i in range(1000): print("%03d"%i) if input() == "unlocked": break