#include <iostream>

using namespace std;

int main(void) {
    int d, s;
    while (1) {
        cin >> d;
        if (cin.eof()) break;
        s = 0;
        for (int x = d; x < 600; x += d) s += d * x * x;
        cout << s;
    }
    return 0;
}