#include<iostream>
using namespace std;
int main(){
int a,b;
int sum=0;
cin>>a>>b;
for(int i=1;i<=b;i++){
sum=sum+i;
}
return 1;
}
#include<iostream>
using namespace std;
int main(){
int a,b;
int sum=0;
cin>>a>>b;
for(;a<=b;a++){
sum=sum+a;
}
count<<a<<endl;
cout<<sum<<endl;
return 1;
}
#include<iostream>
using namespace std;
int main ()
{
int i,n,sum;
while(cin>>n){
for(i=1,sum=0;i<=n;i++)
sum+=i;
cout<<sum<<endl<<endl;
}
return 0;
}