#define _GLIBCXX_DEBUG //遅い可能性がある #include #include using namespace atcoder; using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(a) (a).begin(),(a).end() //lower_bound(ALL(a),x) using ll = long long; using P = pair; using VI = vector; using VVI = vector>; int INF = 100100100; const vector dx = {1, 0, -1, 0}; const vector dy = {0, 1, 0, -1}; int main() { int n; cin >> n; ll m = (1+n)/2; ll ans = (1+m) * m / 2; cout << ans << endl; return 0; }