#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int area(int d) {
	return d*pow(d,2);
}

int main() {
	int d;
	while (scanf("%d", &d) != EOF) {
		int sum = 0;
		for (int i=d; i<600; i+=d) {
			sum += area(i);
		}
		cout << sum << endl;
	}
}