# coding utf-8 for x in range(1000): print(f"{x:03d}") if input() == "unlocked": break