let () = let n = read_int () in Printf.printf "%d\n" ((n + 1) mod 2)