use std::{borrow::BorrowMut, collections::*, io::Read}; struct Scanner(R); impl Scanner { fn new(input: R) -> Self { Self(input) } fn take(&mut self) -> String { self.0 .borrow_mut() .bytes() .map(|c| c.unwrap() as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect::() } } #[allow(unused)] macro_rules! scan { ($io:expr => $t:ty) => ($io.take().parse::<$t>().unwrap()); ($io:expr => $t:tt * $n:expr) => ((0..$n).map(|_| scan!($io => $t)).collect::>()); ($io:expr => $($t:tt),*) => (($(scan!($io => $t)),*)); } fn main() { solve(Scanner::::new(std::io::stdin().lock())) } fn solve(mut cin: Scanner) { let n = scan!(cin => i32); let aa = scan!(cin => i64 * n); let total = aa.iter().sum::(); println!("{}", total); }