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