// fn main() { // let abc = String::from("0123456789"); // let abc = abc.as_bytes(); // println!("{:?}", abc); // } fn main() { let mut input = String::new(); std::io::stdin().read_line(&mut input).unwrap(); let input = input.trim().as_bytes(); let mut sum = 0u32; for i in input { if 48 <= *i && *i <= 57 { sum += *i as u32 - 48; } } println!("{}", sum); }