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