#include <iostream>

using namespace std;

int f(int);

int main() {
	int d, i, s;

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


}

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