n = int(input()) count1 = 0 count2 = 0 for i in range(1, n + 1): if i % 2 == 0: count2 += 1 elif i % 2 != 0: count1 += 1 print(count1, count2)