#include <stdio.h>

/* http://rose.u-aizu.ac.jp/onlinejudge/ProblemSet/description.jsp?id=0014&lang=jp */


int sqr(int x)	/* x^2 */
{
	x = x * x ;

	return x;
}

int main(void)
{
	int d = 0; /*ßÌ lª¬³¢ÙÇç(0~600) x^2 dx = 72000000 ÉßÃ­*/
	int i = 0; /* for¶Ågp */
	int s = 0;/* ßIÊÏ ÅãÉÔ· */
	
	while(1){
	printf("d?:");	scanf("%d",&d);
	
	if ( 600 % d )
	continue;	else break;		/* dª600ÌñÅÈ¯êÎà¤êñüÍ³¹é */
	
	}
	
	
	for( i = d ; i < 600 ; i += d )
	{
		s += sqr(i) * d ;
	}
	
	
	printf("%d",s);
	
	return 0;
	
}