fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: u32 = s.trim().parse().unwrap(); let mut o = 0; let mut a = 0; (0..n).for_each(|_| { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let s: u32 = s.trim().parse().unwrap(); if s > o { a += 1; } if o == 0 { o = s; } println!("{}", a) }) }