#include <iostream>
#include <cmath>

using namespace std;

int d;

int SquareTheX(int x)
{
    return x*x;
}


int main()
{
    cout << "Lenght of d : ";
    cin >> d;
    int SquareAmount = 600/d;
    int TotalArea = 0;
    int Height;

    for(int y = d; y < 600; y = y + d)
    {
        Height = SquareTheX(y);
        TotalArea = TotalArea + (d*Height);
    }

    cout << TotalArea;
    return 0;
}