#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
    ll n,ans,i;
    while(cin >> n){
        ans = 0;
        for(i=n;i<600;i+=n) ans += n*i*i;
        cout << ans << "\n";
    }
}
