#include <iostream>
using namespace std;

int main(void)
{
    int d;
    while (cin >> d) {
        int sum = 0;
        for (int i = 0; i < 600 / d; ++i)
            sum += d*d*d*i*i;
        cout << sum << endl;
    }
    return 0;
}




