fn main(){ let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let year: i32 = s.trim().parse().unwrap(); println!("{}", 2017 - year); }