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