import strformat, strscans, strutils var n = 0 while n <= 999: echo &"{n:03}" let xs = stdin.readAll.splitLines if xs[^1] == "unlocked": quit() inc n