#include <iostream>
using namespace std;

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