use std::io::{self, BufRead}; fn main() { let input = io::stdin() .lock() .lines() .map(|l| { l.unwrap() .split_whitespace() .map(|n| n.parse::().unwrap()) .collect::>() }) .collect::>(); let sum = input[1].iter().sum::(); println!("{}", sum - input[2][0]); }