import sys for i in range(0,1000): sys.stdout.write('%03d\n' % i) sys.stdout.flush() if raw_input() == 'unlocked': break