#include int main() { long long int n; std::cin >> n; n = n/3; std::cout << n*(n+1)/2 << std::endl; }