#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
long int fn(long int a);
long int gn(long int a);
int main()
{
long int a;
while (cin >> a)
{
cout << fn(a) << " " << gn(a) << endl;
}
}
long int fn(long int a)
{
long int k = a;
for (int i = 0; i < k; i++)
{
a = a + i;
}
return a;
}
long int gn(long int a)
{
int k = a;
long int n = 0;
for (int i = 0; i <= k; i++)
{
n = n + fn(i);
}
return n;
}