#include using namespace std; using ll = long long; using ul = unsigned long; using ull = unsigned long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; ll res{ 0 }; if (n > 0) { for (int i = 0; i <= n / 5; ++i) { if (i * 5 == n) { ++res; break; } for (int j = 0; j <= i; ++j) { int sum = i * 5 + j * 2; if (sum == n) { ++res; break; } else if (sum > n) break; if ((n - sum) % 3 == 0) ++res; } } } else res = 1; cout << res << "\n"; return 0; }