#include <cstdio> using namespace std; int main() { int a=1; int n; scanf("%d",&n); for(int i=0;i<n-1;i++) { a+=i; } printf("%d",a); return 0; }