#include<bits/stdc++.h>
using namespace std;
int main(){
  
  int d,s;
  while(cin >> d){
    s = 0;
    for(int i=0;i<600;i+=d){
      s += d*(i*i);
    }
    cout << s << endl;
  }
  
  return(0);
}

