blablabla
#include <iostream> using namespace std; int main() { int a,n; cin >> a; while(cin >> n,n<=0); int res=0; for(int i=0;i<n;i++) { res +=a++; } cout<<res; }