//   __ //  / <@フ // |(ノノハ)) // ノ从゚ヮ゚从 //  ノ|ソノГ|つ author:hotarunx // 〈_ノ^^^ヽ| //  ~~tァtァ~ #include #include #include #include #include #include #include #include #include using namespace std; #define int long long signed main() { cin.tie(0); ios::sync_with_stdio(0); int n; cin >> n; int ans = 0; for (int t = 0; t <= 100; t++) { for (int g = 0; g <= t; g++) { for (int pg = 0; pg <= 100; pg++) { const int point = 5 * t + 2 * g + 3 * pg; if (point == n) ans++; else if (point > n) break; } } } cout << ans << "\n"; }