#[allow(unused)] use proconio::{input, marker::Chars}; fn main() { input! { n: usize, l: [usize; n], } let mut votes = vec![0; 7]; for &x in l.iter() { votes[x] += 1; } let mut ans = 0; let mut max_val = 0; for (i, &x) in votes.iter().enumerate() { if x >= max_val { max_val = x; ans = i; } } println!("{}", ans) }