#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll=long long; template using V = vector; template using P = pair; using vll = V; using vvll = V; #define ALL(v) v.begin(),v.end() template < class T > inline bool chmax(T& a, T b) {if (a < b) { a=b; return true; } return false; } template < class T > inline bool chmin(T& a, T b) {if (a > b) { a=b; return true; } return false; } #define DEBUG_VLL(vec) REP(sz, vec.size()) std::cerr<> n; int ans = 0; for (int pg = 0; pg * 3 <= n; pg++) { for (int t = 0; t * 5 <= n; t++) { for (int g = 0; g <= t; g++) { if (pg * 3 + t * 5 + g * 2 == n) ans++; } } } cout << ans << '\n'; return 0; }