use std::io; use std::io::prelude::*; fn main() { let stdin = io::read_to_string(io::stdin()).unwrap(); let mut stdin = stdin.split_whitespace(); let stdout = io::stdout(); let mut stdout = io::BufWriter::new(stdout.lock()); let n: usize = stdin.next().unwrap().parse::().unwrap(); let mut sn = 0; for _ in 0..n { let a: usize = stdin.next().unwrap().parse::().unwrap(); sn += a; } writeln!(stdout, "{}", sn).unwrap_or(()); }