fn solve(summary: i64, s: String) { println!("{} {}", summary, s); } fn main() { let mut x_y = String::new(); let mut s = String::new(); std::io::stdin().read_line(&mut x_y).unwrap(); std::io::stdin().read_line(&mut s).unwrap(); let summary: i64 = x_y.trim().split_whitespace() .map(|s| s.parse::().unwrap()) .sum(); solve(summary, s); }