#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
if (n % 2 == 0)
cout << (2 + n) * (n / 2) / 2 << " " << (1 + n - 1) * (n / 2) / 2;
else
cout << (2 + n - 1) * (n / 2) / 2 << " " << (1 + n) * (n / 2 + 1) / 2;
return 0;
}
int ans1()
{
int n;
cin >> n;
int j = 0, o = 0;
for (int i = 1; i <= n; i++)
if (i % 2)
j += i;
else
o += i;
cout << o << " " << j;
return 0;
}