2016-12-05 22:15:40 +01:00
|
|
|
use std::io;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2017-09-23 10:01:46 +02:00
|
|
|
let mut line = String::new();
|
|
|
|
|
io::stdin().read_line(&mut line).expect("reading stdin");
|
|
|
|
|
|
|
|
|
|
let sum: i64 = line.split_whitespace()
|
|
|
|
|
.map(|x| x.parse::<i64>().expect("Not an integer"))
|
|
|
|
|
.sum();
|
|
|
|
|
println!("{}", sum);
|
2016-12-05 22:15:40 +01:00
|
|
|
}
|