#include using namespace std; int main() { int m,k=0; while(cin>>m) { if(m%2)k=(m+1)/2*m; else if((m+1)%2)k=m/2*(1+m); cout