#include //#include typedef unsigned long long ULLONG; typedef long long LLONG; static const LLONG MOD_NUM = 1000000007; //998244353; template static void get(_T& a) { std::cin >> a; } template static void get(_T& a, _T& b) { std::cin >> a >> b; } template static void get(_T& a, _T& b, _T& c) { std::cin >> a >> b >> c; } template static _T tp_abs(_T a) { if (a < (_T)0) { a *= (_T)-1; } return a; } static void A(); int main() { A(); fflush(stdout); return 0; } static void A() { int N; get(N); int t, g, pg, ans = 0;; for (t = 0; (t * 5) <= N; t++) { for (g = 0; (g <= t) && ((t * 5 + g * 2) <= N); g++) { int sum1 = t * 5 + g * 2; for (pg = 0; (pg * 3 + sum1) <= N; pg++) { if (((pg * 3) + sum1) == N) { ans++; } } } } printf("%d\n", ans); }