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