#include<iostream>

using namespace std;

int main() {
	int d;
	while (cin >> d) {
		int total = 0, tmp = d;
		for (d; 600 - d > 0; d += tmp) {
			total += tmp * d*d;
		}
		cout << total << endl;
	}
}
