class Problem0687: def solve(this): n = int(input()) t = n // 2 print("%d %d" % (t, n -t)) if __name__ == "__main__": problem = Problem0687() problem.solve()