#include <iostream>
using namespace std;

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

  return 0;
}