#include<iostream>
using namespace std;

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