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) { const expects: i32 = 55; // (1..10).sum(); let sum = (0..9).map(|_| read::(sl).unwrap()).sum::(); println!("{}", expects - sum); } fn main() { let s = stdin(); let mut sl = s.lock(); run(&mut sl); }