fn main(){ let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let mut count: i32 = 0; for i in s.trim().chars() { count += match i.to_string().parse(){Ok(o) => o,Err(_) => 0,}; } println!("{}", count); }