#include <iostream>
using namespace std;

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