#include <iostream>

using namespace std;

int d;

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

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

    return 0;
}