N = int(input()) o = 0 e = 0 for i in range(1, N + 1): if i % 2 != 0: o += i else: e += i print(o, e)