#include <stdio.h>

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