use std::io::*; use std::str::*; fn read(sl: &mut StdinLock) -> Option { let s = sl.by_ref().bytes().map(|c| c.unwrap() as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect::(); s.parse::().ok() } fn run(sl: &mut StdinLock) { let l = read::(sl).unwrap(); let m = read::(sl).unwrap(); let n = read::(sl).unwrap(); let an = n / 25; let en = n % 25; let am = (m+an) / 4; let em = (m+an) % 4; let el = (l+am) % 10; println!("{}", el + em + en); } fn main() { let s = stdin(); let mut sl = s.lock(); run(&mut sl); }