#include <iostream>

int main(){
	int f_x,sum_area;
	int d = 0;
	while(std::cin >> d){
		sum_area = 0;
		for(int i = d; i <= 600 - d; i += d){
			f_x = i * i;
			sum_area += f_x * d;
		}
		std::cout << sum_area << std::endl;
	}
}