#include #define rep(i,n) for(int i = 0; i < n; i++) #define srep(i,a,b) for(int i = a; i < b; i++) #define all(A) (A).begin(),A.end() #define MOD 1000000007 using namespace std; using ll = long long; using P = pair; using Graph = vector>; int main(void){ int n; cin >> n; int cnt = 0; rep(i,100){ rep(j,100){ rep(k,100){ if(i*5+j*2+k*3 == n && j <= i) cnt++; } } } cout << cnt; }