/** * @FileName b.cpp * @Author kanpurin * @Created 2020.09.18 21:45:23 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int n;cin >> n; int cnt = 0; for (int i = 0; i * 5 <= n; i++) { for (int j = 0; j * 2 <= n && j <= i; j++) { for (int k = 0; k * 3 <= n; k++) { if (i * 5 + j * 2 + k * 3 == n) { cnt++; } } } } cout << cnt << endl; return 0; }