#include <iostream>
using namespace std;

int f(int x){
  x = x*x;
  return x;
}

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