#include <iostream>

using namespace std;

int main()
{ 
	int d;
	
	while (cin >> d)
	{
		int area = 0;
		for (int i = d; i <= 600 - d; i += d)
			area += ((i * i) * d);

		cout << area << endl;
	}

	return 0;
}