#include <iostream>

int main(){
	const int x = 600;
	int d;
	
	while(std::cin >> d){
		int sum = 0; //面積の合計値
		for(int i = d; i < x; i += d){
			sum += i*i*d;
		}
		
		std::cout << sum << std::endl;
	}
	
	return 0;
}