import sys for i in range(10): for j in range(10): for k in range(10): print(str(i)+str(j)+str(k)) if input() == "unlocked": exit()