#include <cstdio>
#include <iostream>

using namespace std;

int main() {
	int d;
	while (scanf("%d", &d) != EOF) {
		int area = 0;
		for (int i=0; i<600; i += d) area += i * i;
		printf ("%d\n", area * d);
	}
	return 0;
}