import sys for i in range(10): for j in range(10): for k in range(10): print "".join(map(str,[i,j,k])) sys.stdout.flush() if (raw_input() == "unlocked"): exit()