using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aoj4
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                string u = Console.ReadLine();
                if (String.IsNullOrEmpty(u)) break;
                int n = int.Parse(u);
                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;
                    }
                }
                Console.WriteLine(e);
            }
        }
    }
}