#include <stdio.h>
#include <stdlib.h>
//#include <iostream>
//#include <vector>
//using namespace std;

#define MAX_LENGTH 8192
#define MYSCAN scanf_s

int f(int x);

int main(void){
	
	int large, input, count;
	int d[MAX_LENGTH];

	// テ・ツ仰陛ァツ堋?」ツ?ォテァツ「ツコテ、ツソツ敕」ツ?療」ツ?淌ゥツ?催・ツ按療」ツ?ォテ・ツ?・テ・ツ環崚」ツつ津ヲツオツ?」ツ?療ィツセツシテ」ツつ?
	for (count = 0; MYSCAN("%d", &d[count]) != EOF; 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];
		}
		printf("%d\n", large);
	}

	system("PAUSE");
	return 0;
}

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