def square(n)
   n * n
end
#main

arr = Array.new
while n = gets
   arr << n.to_i
end
p arr

arr.each do |d|
   sum = 0
   0.upto(600 / d - 1) do |i|
      sum += square(i * d) * d
   end
   puts sum
end