#include <bits/stdc++.h>
using namespace std;

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