fn main() { if read::() % 2 == 0 { println!("2"); } else { println!("1"); } } fn read() -> T { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().parse().ok().unwrap() }