#include <iostream>
using namespace std;

int GetLowerApproximatedArea(int Delta)
{
	int SumArea = 0;
	for(int i = 0; Delta * i < 600; i++){
		SumArea += Delta * Delta * i * Delta * i;
	}
	return SumArea;
}

int main()
{
	while(true){
		int Delta;
		cin >> Delta;
		if(cin.eof() == true) break;
		cout << GetLowerApproximatedArea(Delta) << endl;
	}
	return 0;
}