#include using namespace std; typedef long long ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; int res=0; for(int i=0;i<=n/5;i++){ for(int j=0;j<=i;j++){ if(i*5+j*2<=n&&(n-i*5-j*2)%3==0)res++; } } printf("%d\n",res); }