#include<iostream>

using namespace std;

int main(){

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