#include <iostream>
#include <vector>
using namespace std;

int f(int x);

int main(void){
	
	int large, input, count = 0;
	vector<int> d;

	// テ・ツ仰陛ァツ堋?」ツ?ォテァツ「ツコテ、ツソツ敕」ツ?療」ツ?淌ゥツ?催・ツ按療」ツ?ォテ・ツ?・テ・ツ環崚」ツつ津ヲツオツ?」ツ?療ィツセツシテ」ツつ?
	while (cin >> input){
		d.push_back(input);
		count++;
	}

	// テ・ツ青?・ツ?・テ・ツ環崚」ツ?ォテ・ツッツセテ」ツ?療」ツ?ヲテヲツ督催、ツスツ?
	for (int i = 0; i < count; i++){
		large = 0;
		for (int j = 0; j < (600 / d[i]) - 1; j++){
			large += f((j + 1) * d[i]) * d[i];
		}
		cout << large;
		printf("\n");
	}

	return 0;
}

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