use std::io::BufRead; fn main() { let mut l = std::io::stdin().lock().lines(); l.next(); let n: Vec = l .filter_map(|l| l.ok().and_then(|s| s.parse().ok())) .collect(); let mut a = 1; for &x in &n { if x > n[0] { a += 1; } println!("{}", a); } }