n = int(input()) a = int(n / 2) b = n - a print(str(a) + " " + str(b))