#include <iostream>
using namespace std;

int main() {
  int d;
  while (cin >> d) {
    int ans = 0;
    for (size_t i = d; i <= 600 - d; i += d) {
      ans += i * i * d;
    }
    cout << ans << endl;
  }
}
