for i in range(1000): s = str(i) t = s.zfill(3) print(t) if input() == 'unlocked': break