from sys import stdin
def f(n):
if n==1:
return 1
else:
return (n+f(n-1))
def g(n):
return (f(n)+g(n-1))
for s in stdin:
n=int(s)
print('%d %d'%(f(n),g(n)))