#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
typedef long long int ll;

int main(){
    int n;
    while(scanf("%d",&n)!=EOF){
        ll ans=0;
        ll d=600/n;
        for(int i=0;i<d;i++){
            ans+=n*i*n*i*n;
        }
        cout << ans << endl;
    }
}
