#include <iostream>
using namespace std;
 
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0014

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