fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); println!( "{}", match s.trim().parse().unwrap() { 1 => 1321, 2 => 14927, _ => 841341, } ) }