use std::io::BufRead; fn main() { let mut l = std::io::stdin().lock().lines(); l.next(); let mut a = 1; if let Ok(first_value) = l.next().unwrap().unwrap().parse::() { println!("1"); for k in l { if let Some(value) = k.ok().and_then(|s| s.parse::().ok()) { if value > first_value { a += 1; } println!("{}", a) } } } }