use std::fmt::Debug; use std::io::stdin; use std::str::FromStr; fn read_line() -> Vec where T: FromStr, ::Err: Debug { let mut s = String::new(); stdin().read_line(&mut s).unwrap(); s.trim().split_whitespace().map(|c| T::from_str(c).unwrap()).collect() } fn main() { let n: usize = read_line()[0]; let a: Vec = (0..n).map(|x| read_line()[0]).collect(); let sum: usize = a.iter().sum(); println!("{}", sum); }