#include<cmath>
#include<iostream>
#define f(x) x*x
using namespace std;
int main(){
  int d,sum; // 面積
  while(cin >> d){
    sum = 0;
    for(int i=d;i<600;i+=d){
      sum += (f(i) * d);
    }
    cout << sum << endl;
  }
}