use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); println!( "{}", s.split_whitespace() .skip(1) .flat_map(str::parse::) .reduce(|a, b| a + b) .unwrap() ) }