#include<iostream> using namespace std; int main(){ int n; cin>>n; int h=0; for(;n>0;--n) h+=n; cout<<h; return 0; }