fn main() { let mut len_s = String::new(); std::io::stdin().read_line(&mut len_s).ok(); let mut nums_s = String::new(); std::io::stdin().read_line(&mut nums_s).ok(); let len: u32 = len_s.trim().parse().unwrap(); let num: Vec<&str> = nums_s.trim().split(' ').collect(); let mut sum: u64 = 0; for n in 0..len { let x: u64 = num[n as usize].parse().unwrap(); sum += x; } println!("{}", sum); }