#include<iostream>using namespace std;int main(){ int n, a[500+1]; a[1]=1; for(int k=2; k<=500; k++) a[k]=a[k-1]+(k-1); while(cin>>n) cout<<a[n]<<endl;}