def rectangle(a, b)
  return a * b
end

def f(x)
  return x ** 2
end

while line = gets do
  d = line.to_i
  area = 0
  
  (600 / d).times do |i|
    area += rectangle(f(i * d), d)
  end

  puts area
end