#include<iostream>
using namespace std;

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