for i in range(0, 1000): print(str(i).zfill(3)) ans = input() if ans == 'unlocked': break