n=int(input()) jishu=0 oushu=0 for x in range(0,n+1): if x%2!=0: jishu+=x else: oushu+=x print(jishu,oushu)