#include <bits/stdc++.h>

using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int d;
  while (cin >> d) {
    int s = 0;
    for (int x = d; x < 600; x += d) {
      s += x * x * d;
    }
    cout << s << endl;
  }
}
