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