use proconio::input; fn main(){ input!{ n:usize, a:[isize;n], b:isize, } let mut ans=0; for i in a{ ans+=i; } print!("{}",ans-b); }