let rec even = fun n -> fun k ->
    if n = 0 then
        k true
    else
        odd (n - 1) k
and odd = fun n -> fun k ->
    if n = 0 then
        k true
    else
        even (n - 1) k
in
let empty_k = fun k -> k in

let n : int = read_int () in
print_bool (even n empty_k)
