let c = read_int () in
Printf.printf "%d %d\n" (c/2) (c - c/2)