use std::io::*; fn main() { let mut ans = vec![10; 10]; let mut target = 0; let mut same = 0; loop { ans[target] -= 1; for i in 0..10 { print!("{}", ans[i]); } println!(""); let mut s: String = String::new(); std::io::stdin().read_line(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let n = itr.next().unwrap().parse().unwrap(); let s = itr.next().unwrap().to_string(); if s == "unlocked" { break; } if n > same { same = n; target += 1; } } }