#encoding:utf-8 No.0014 2014.10.1
ary = []
while gets
  ary.push $_.chomp.to_i
end

def func(n)
  return n **2
end

ary.length.times do |i|
  width = ary[i]
  area = 0
  x = ary[i]
  while x < 600
    length = func(x)
    area += length * width
    x += ary[i]
  end
  puts area
end