#include <bits/stdc++.h>

using namespace std;

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

int main()
{
    int d;
    while (cin >> d) {
        int res = 0;
        for (int i = d; i <= 600 - d; i += d) {
            res += d * f(i);
        }
        cout << res << endl;
    }
    return 0;
}