#include <iostream>
using namespace std;
int d;
int f(int x){
    return x*x;
}
int solve(){
    int r=0;
    for(int i=0; i*d<600; i++){
        r += f(i*d)*d;
    }
    return r;
}
signed main(){
    while(cin >> d){
        cout << solve() << endl;
    }
}
