package main import . "fmt" func main() { for i:=0; i<1000;i++{ Printf("%03d\n", i) var s string Scan(&s) if s == "unlocked" { return } } }