#include<iostream>
using namespace std;
int main() {
    int d;
    int i,j;
    while(cin >> d) {
        long long ans = 0;
        for(j=0;j*d<600;j++)ans += (long long)d*d*d*j*j;
        cout << ans << endl;
    }
}
