#include <iostream>

using namespace std;

int main()
{
    int d;
    int Answer = 0;

    while(cin >> d)
    {
        for(int i = d; i < 600; i+=d)
        {
            Answer = Answer + i*i*d;
        }

        cout << Answer;
    }

}