#include <iostream>
using namespace std;

int main() {
	int d, s;
	while (cin >> d) {
		s = 0;
		for (int i = 1;i <= (600 / d )- 1;i++) {
			s += d * d * d * i * i;
		}

		cout << s << endl;
	}

	return 0;
}