#include int main() { long long n; std::cin >> n; std::cout << -(n*n - 1) / 4 + (n-1)/2*n << std::endl; return 0; }