def aux(f, a, b, d)
  s = 0.0
  n = ((b-a)/d).to_i
  n.times {|i|
    s += f.call(i*d)
  }
  return s*d
end

def main
  fh=STDIN
  #fh=File.new("x.txt", "r")
  while fh.gets
    f=lambda{|x| x**2}
    d = $_.chomp.to_i
    puts format("%.0f", aux(f, 0, 600, d))
  end
end

if $0 == __FILE__ then
  main
end
