#include <iostream>
using namespace std;

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

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