#include #include #include #include #include #include #include #include #include #include #include using namespace std; #define FOR(i,a,b) for (int i=(a);i<(b);i++) #define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--) #define REP(i,n) for (int i=0;i<(n);i++) #define RREP(i,n) for (int i=(n)-1;i>=0;i--) #define INF (1<<30) #define ALEN(ARR) (sizeof(ARR) / sizeof((ARR)[0])) #define MP make_pair #define mp make_pair #define pb push_back #define PB push_back #if DEBUG #define _DEBUG(x) cout<<#x<<": "< ostream& operator<< (ostream& out, const vector& v) { if ( !v.empty() ) { out << '['; copy (v.begin(), v.end(), ostream_iterator(out, ", ")); out << "\b\b]"; } return out; } /* template end */ int main(){ cin.tie(0); ios::sync_with_stdio(false); cout.precision(16); int n; cin >> n; int ans = 0; for(int i = 0; i <= 20; i++) { for(int j = 0; j <= 50; j++) { for(int k = 0; k <= 34; k++) { ans += i * 5 + j * 2 + k * 3 == n && i >= j ? 1 : 0; } } } #if DEBUG cout << "** RESULT **" << endl; // debug #endif cout << ans << endl; return 0; }