#include <iostream>

long int sum_area(int d){
	long int sum;
	for(int i = d;i <= 600 - d;i += d){
		sum += i*i*d;
	}
	return sum;
}

int main(){
	int d;
	while(std::cin >> d)
		std::cout << sum_area(d) << std::endl;
	
	return 0;
}