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