use std::io;
fn main() {
let mut input = String::new();
io::stdin().read_line(&mut input)
.expect("failed to read line");
let words = input.split_whitespace().rev();
let mut result = 0;
for word in words {
let ii:i32 = word.trim().parse().expect("error");
result += ii;
}
println!("{}",result);
}
String->i32,u32,f32使用.trim().parse() i32,u32,f32->String使用.to_string()