n =int(input())
ji = 0
ou = 0
for i in range(1,n+1):
    if i % 2 == 0:
        ou += 1
    else:
        ji += 1
print("%d %d" % (ji,ou))