#include <iostream>
using namespace std;

int main()
{
	unsigned long d;
	while (cin >> d) {
		unsigned long s = 0;
		for (unsigned long i = d; i + d <= 600; i += d) {
			s += (i*i*d);
		}
		cout << s << endl;
	}
	return 0;
}