#include <bits/stdc++.h>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,a) FOR(i,0,a)

int main(){
  int d;
  while (cin>>d){
    int sum=0;
    for(int i=d;i<600;i+=d){
      sum+=i*i*d;
    }
    cout<<sum<<endl;
  }
  return 0;
}