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 first = n[0]; let mut a = 1; for &x in &n { if x > first { a += 1; } println!("{}", a); } }