#include <iostream>

int main(){
	int d;
	while(std::cin >> d){
		int sum = 0, num_block = (600 / d) - 1;
		for(int i = 1 ; i <= num_block ; ++i){
			sum += (d * (d * d * i * i));
		}
		std::cout << sum << std::endl;
	}
    return 0;
}