#include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ int n, t, c, r, r1, cnt; cin >> n; for (int i = 0; i <= n/5; i++){ t = i; r = n - i*5; for (int j = 0; j <= r/3; j++){ r1 = r - j*3; if (!(r1%2) && r1/2 <= t) cnt++; } } cout << cnt << endl; }