//ツ姪「ツ妥ィツ閉カツづ可個セツづュツづェツつスツ津環づィツづ可偲?堕閉つキツづゥツつセツつッ
#include <iostream>
using namespace std;

int f(int x){
  return x * x;
}

int main(){
  int d;

  while(cin >> d){
    int sum = 0;

    for(int i = d; i <= 600 - d; i += d){
      int h = f(i);
      sum += h * d;
    }

    cout << sum << endl;
  }
}