#include <stdio.h>
int main(){ int a; unsigned long int b; while(scanf("%d",&a)!=EOF) { if(a<0) break; b=(1+a)*a/2+1; printf("%ld\n",b); } return 0;}
用Dev跑可以但就是會WA