#include #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { int n; cin >> n; int ans = 0; for (int i = 0; i <= 20; ++i) { for (int j = 0; j <= i; ++j) { for (int k = 0; k <= 34; ++k) { if (5 * i + 2 * j + 3 * k > n) break; if (5 * i + 2 * j + 3 * k == n) ++ans; } } } cout << ans << endl; return 0; }