fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: u128 = s.trim().parse().unwrap(); if n == 1 || n == 4 { println!("{}", -1); } else if n % 4 == 2 { println!("{}", -1); } else{ println!("{}", 1); } }