#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;

double dF(double x)
{
    return pow(x, 2);
}

double dIntegral(double d)
{
    double ans = 0;
    for(int i = 1; i <= 600 / d; i++)
    {
        ans += dF(i * d) * d;
    }

    return ans;
}

int main()
{
    double d;
    while(cin >> d)
    {
        cout << dIntegral(d) << endl;
    }

    return EXIT_SUCCESS;
}