answers = Array.new

while line = $stdin.gets
	d = line.chomp.to_i
	sum = 0
	count = 600 / d 
	count.times{ |n|
		xsize = d
		ysize = n * d
		rect  = xsize * ( ysize * ysize)
		sum += rect
	}
	answers << sum	
end

answers.each{ |a| puts a }
