#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; int res = 0; for (int t = 0; t < N + 10; t++) { for (int g = 0; g < t + 1; g++) { for (int pg = 0; pg < N + 10; pg++) { int point = t * 5 + g * 2 + pg * 3; if (point == N) res++; } } } cout << res << '\n'; return 0; }