class Integral
  def initialize
    @max = 600
    @area = 0
    @d = 0
  end

  def func(x)
    return (x ** 2)
  end

  def d=(val)
    @d = val
    @area = 0
  end

  def calc_area
    @d.step(@max - @d, @d){|i| @area += func(i) * @d}
    @area
  end
end

integral = Integral.new

while line = gets do
  integral.d = line.to_i
  puts integral.calc_area
end