#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

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


