fn main() { let mut s = String::new(); for i in 0..=999 { println!("{:03}", i); std::io::stdin().read_line(&mut s).ok(); if &s[..1] == "u" { break; } s.clear(); } }