#include <bits/stdc++.h>
using namespace std;
int main(void){
    int d,sum;
    sum = 0;
    while (cin >> d) {
        for (int i=1;i<=((600-d)/d);i++) {
            sum = sum + (i*d*i*d*d);
        }
        cout << sum << endl;
        sum = 0;
    }
}

