#include <iostream>
#include <cmath>
using namespace std;

int main() {
	int d, ans;
	while (cin >> d) {
		ans = 0;
		for (int i = d; i < 600; i += d) ans += pow(i, 2) * d;
		cout << ans << endl;
	}
	return 0;
}
