#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <sstream>
#include <iomanip>
 
#define INPUT_FROM_FILE (0)
#if INPUT_FROM_FILE
#include <fstream>
#endif

int f(long n){
	return n * n;
}

int main(int argc, char **argv){
	std::string buf;
	long d = 0;
	long max = 0;
	long s = 0;

#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif

#if INPUT_FROM_FILE
	while(std::getline(ifs, buf)){
#else
	while(std::getline(std::cin, buf)){
#endif
		d = std::stoi(buf);
		max = 600 - d;

		s = 0;
		for(int i = d; i <= max; i += d){
			s += d * f(i);
		}
		std::cout << s << std::endl;
	}
	return 0;
}
