#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	while (cin>>n)
    {
        int a, b, c, d,e=0;
        for (a = 0; a <= n; a++)
        {
        	for (b = 0; b <= n; b++)
     		{
        	  for (c = 0; c <= n; c++)
              {
                 d = n - a - b - c;
           	     if (d >= 0) e++;
                  if (a + b + c > n) break;
              }
              if (a + b > n) break;
            }
       }
        cout<<e<<endl;
    }
}