1000.times{|x| puts '%03d'%x STDOUT.flush if gets.chomp=='unlocked' then exit end }