import strformat,strutils,os for i in 0..999: echo fmt"{i:03d}" sleep(1) if stdin.readLine() == "unlocked": break