#include <iostream>
using namespace std;
int main (){
long double n;
while(cin>>n)
cout<<(long int)((n+1)*(n/2))<<" "<<(long int)(n*(n+1)*(n/2)-n*(n+1)*(n-1)/3)<<endl;
return 0;
}