use std::io::stdin; fn get_line() -> String { let mut line = String::new(); stdin().read_line(&mut line).ok(); line } fn main() { get_line(); let second_line = get_line(); let splited_line: Vec<&str> = second_line.trim().split(" ").collect(); let mut result: i64 = 0; for i in splited_line { let num: i64 = i.parse().unwrap(); result += num; } println!("{}", result); }