#include <iostream>
using namespace std;

int main() {

  int d;
  while( cin >> d ) {

    long long int s = 0;

    for ( int i = 0; i < 600/d; i++ ) {

      int x = i * d;
      s += x*x*d;

    }

    cout << s << endl;

  }

  return 0;

}