#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; i++)
#define INF 1000000
using namespace std;
int dx[] = {1,0,-1,0};
int dy[] = {0,1,0,-1};
int main(){
    int d;
    while(cin >> d){
        int s = 0;
        for(int i=d; i<600; i+=d){
            s += i*i*d;
        }
        cout << s << endl;
    }
    return 0;
}
