#include<iostream>
using namespace std;
int main()
{
int n;
long long int f[30001],g[30001];
f[1]=g[1]=1;
for(int i=2;i<=30000;i++)f[i]=i+f[i-1];
for(int i=2;i<=30000;i++)g[i]=f[i]+g[i-1];
while(cin>>n)
cout<<f[n]<<" "<<g[n]<<endl;
}