#include <iostream> using namespace std; int main() { int n,s; while(n!=EOF){ cin>>n; cout<<n*(1+n)/2; } }