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

namespace Programminng
{
    class AOJ_Volume0014
    {
        public static void Main(string[] args)
        {

            while (true)
            {
                string input = Console.ReadLine(); ;
                if (string.IsNullOrEmpty(input)) break;

                int d = int.Parse(input);
                int value = 0, s = 0;

                while (value != 600 - d)
                {
                    value += d;
                    int line = value * value;
                    s += line * d;
                }
                Console.WriteLine(s);

            }
        }
    }
}