def main(): for i in range(500): for j in (f'{i:0>3}', f'{999-i:0>3}'): print(j) a = input() if a == 'unlocked': return main()