#include <iostream>
using namespace std;

int f(int x){
	return x * x;
}

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