n = int(input())
n1 = 0
n2 = 0
for i in range(1, n+1):
    if i % 2 == 0:
        n2 += 1
    else:
        n1 += 1
print(n1, end = ' ')
print(n2)