#include #include using namespace std; int main() { int a, b; string s; // 標準入力から、空白や改行で区切られた整数と文字列を読み込む。 // cin >> a >> b >> s; cin >> a; // 整数と文字列を空白で区切って、標準出力に書き出す。 // cout << a + b << " " << s << endl; for(int i=1;i <= a;i++){ b = b + i; } cout << b << endl; return 0; }