#include <iostream>
#include <cstdio>
#include <complex>
#include <cmath>
#include <utility>
#include <algorithm>
using namespace std;

int main()
{
    int d;
    int S;
    while(cin >> d && d)
    {
        S=0.0;
        int a = 600/d;
        for(int i=1;i<a;i++)
        {
            S += d*i*d*i*d;
        }
        cout << S << endl;
    }
    return 0;
}
