#include<bits/stdc++.h>
#define rep(i, x) for(ll i = 0; i < x; i++)
#define rep2(i, x) for(ll i = 1; i <= x; i++)
#define all(a) (a).begin(),(a).end()
using ll = long long;
using ld = long double;
using namespace std;

signed main() {
	ll n, ans = 0; cin >> n;
	rep(i, n) {
	    rep(j, i + 1) {
	        rep(k, n) {
	            if (i * 5 + j * 2 + k * 3 == n) { ans++; }
	        }
	    }
	}
	cout << ans << endl;
	return 0;
}