#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin >> n;
    int ans = 0;
    for(int i=0;i<=100;i++){
        for(int j=0;j<=i;j++){
            for(int k=0;k<=100;k++){
                if(5*i + 2*j + 3*k == n)ans++;
            }
        }
    }
    cout << ans << endl;
}