def f(x)
  x * x
end

if __FILE__ == $0
  loop do
    d = gets
    break if d.nil?
    d = d.to_i
    # p (d..(600-d)).step(d).to_a.map{|x| f(x)*d}.inject(:+)
    s = 0
    (d..(600-d)).step(d).each do |x|
      s += f(x) * d
    end
    p s
  end
end