//#pragma GCC optimize("O3,unroll-loops") //#pragma GCC target("avx,avx2,fma,tune=native") //#pragma GCC target("avx,avx2,fma") //#pragma GCC target("tune=native") #include using namespace std; #define ff first #define ss second #define all(x) begin(x), end(x) #define rall(x) (x).rbegin(), (x).rend() #define PB emplace_back #define MP make_pair #define MT make_tuple #define REP(i, a, b) for (ll i = (a); i < (b); ++i) #define RREP(i, a, b) for (ll i = (a); i > (b); --i) #define cinai(a, n) REP(ii, 0, n) cin >> a[ii] #define cinani(a, n) int n; cin >> n; int a[n]; cinai(a, n) #define cinan(a, n) ll n; cin >> n; ll a[n]; cinai(a, n) #define FAST_IO ios_base::sync_with_stdio(false); cin.tie(nullptr); #define FILE_IN freopen("input.txt", "r", stdin); #define FILE_OUT freopen("output.txt", "w", stdout); #define TESTCASES ll tt; cin >> tt; while (tt--) #define TESTCASES1 ll tt; cin >> tt; REP(ttt, 1, tt + 1) #define CASEOUT cout << "Case #" << ttt << ": " #define NEG_INF (-LLONG_MAX) #define FLOAT_EQ(a, b) (abs((a) - (b)) < 1e-9) #define MOD (1'000'000'007) //#define MOD_SUM(a, b) ((a) + (b) >= MOD) ? ((a) + (b) - MOD) : ((a) + (b)) #define endl "\n"; #define debarr(a,n) cout<<#a<<" : ";for(int i=0;iostream& operator <<(ostream& os, const pair& p) {return os << "(" << p.first << ", " << p.second << ") ";} template ostream& operator <<(ostream& os, const vector& p) {os << "[ "; for (auto& it : p) os << it << " "; return os << "] ";} template ostream& operator <<(ostream& os, const unordered_set& p) {os << "{ "; for (auto& it : p) os << it << " "; return os << "} ";} template ostream& operator <<(ostream& os, const unordered_map& p) {os << "[ "; for (auto& it : p) os << it << " "; return os << "] ";} template ostream& operator <<(ostream& os, const set& p) {os << "{ "; for (auto& it : p) os << it << " "; return os << "} ";} template ostream& operator <<(ostream& os, const multiset& p) {os << "{{ "; for (auto& it : p) os << it << " "; return os << "}} ";} template ostream& operator <<(ostream& os, const map& p) {os << "[ "; for (auto& it : p) os << it << " "; return os << "] ";} template void dbs(string str, T t) {cerr << str << " : " << t << "\n";} template void dbs(string str, T t, S... s) {int idx = str.find(','); cerr << str.substr(0, idx) << " : " << t << ","; dbs(str.substr(idx + 1), s...);} template void prc(T a, T b) {cerr << "["; for (T i = a; i != b; ++i) {if (i != a) cerr << ", "; cerr << *i;} cerr << "]\n";} //#include //#include //using namespace __gnu_pbds; //typedef tree, rb_tree_tag, // tree_order_statistics_node_update> indexed_set; /* find_by_order(k) and order_of_key(x) */ //#include //using namespace __gnu_cxx; //rope v1; // can use as usual STL container // v1.push_back(x), v1.erase(start, len) // v2 = v1.substr(l, r - l + 1) // v.insert(v.mutable_begin() + idx, v2) // auto it = v.mutable_begin(); it != v.mutable_end(); it++ // can index using [ ] to return const ref // modify: v.mutable_reference_at(i) = x //#include //using namespace __gnu_pbds; //gp_hash_table table; // can use any other type as key if defined a hash function //struct chash { // int operator()(pi x) const { return x.first * 31 + x.second; } //}; //gp_hash_table table; typedef long long ll; typedef unsigned long long ull; //typedef __int128_t lll; typedef long double ld; typedef pair pi; typedef pair pl; typedef tuple ti; typedef vector vi; typedef vector vpi; typedef vector vvi; typedef vector vl; typedef vector vvl; // x^y mod m in O(log y) ll bin_exp_mod(ll x, ll y, ll m) { x %= m; ll ans = 1LL; while (y) { if (y & 1) ans = (ans * x) % m; x = (x * x) % m; y >>= 1; } return ans; } int main() { FAST_IO // FILE_IN // FILE_OUT // cout << setprecision(11); string problem_name = "gymnastics"; #define NEW_PROBLEM #ifndef LOCAL_RIPPR #ifndef NEW_PROBLEM freopen((problem_name + ".in").c_str(), "r", stdin); freopen((problem_name + ".out").c_str(), "w", stdout); #endif #endif // TESTCASES {} ll n; cin >> n; cout << (n * (n + 1)) / 2; cout << flush; }