#include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;

using namespace std;
int main(){

    
    ll n;
    while(cin>>n){
        ll ans=0;
        ll j=1;
        for(int i=n*j;n*j<=600-n;i=n*j){
            ans+=pow(j*n,2)*n;
            j++;
        }
        
        cout<<ans<<endl;
        
        
    }
    
    
    
    
    
    return 0;
}

