#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long int ll; //#include using namespace std; int main() { int Q; Q = 1; //cin >> Q; while (Q--) { unsigned long long p; cin >> p; unsigned long long x = p; x++; if (p % 2)x /= 2; else p /= 2; cout << p * x; } return 0; }