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