#include <iostream>
#include <algorithm>
using namespace std;

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

int main() {
  int d;
  while(cin >> d) {
    int S = 0;
    for(int x = d; x <= 600-d; x += d) {
      S += f(x) * d;
    }
    cout << S << endl;
  }
  return 0;
}