include
include
using namespace std;
int main()
{
int n, count = 0;
cin >> n;
for(int i = 0; i <= n/5; i++)
{
for(int j = 0; j <= n/2; j++)
{
if((i5 + j2) > n)
{
break;
}
for(int k = 0; k <= n; k++)
{
if((i5 + j2 + k) > n)
{
break;
}
else if((i5 + j2 + k) == n)
{
count++;
}
}
}
}
cout << count << endl;
}