#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
	int n;
	while (cin >> n)
	{
		int ans = 0;
		for (int i = 0; i < (600 / n); i++)
		{
			ans += (i * n * n * i * n);
		}
		cout << ans << endl;
	}
	return 0;
}
