use proconio::input; fn main() { input! { n: usize, x: usize, a: [usize; n], } let ans = a.iter().sum::().saturating_sub(x); println!("{ans}"); }