#include <iostream>
#include <string>
#include <stack>

using namespace std;

int main(){
	int x, y, n, area;
	int d;
	y = 600;
	area = 0;
	while (cin >> d){
		n = y / d;
		for (int i = 1; i < n; i++){
			area += d * ((d * i) * (d * i));

		}
		cout << area << endl;
		area = 0;
	}
	return 0;
}
