#encoding:utf-8
d_ary = []
while true
 d = gets.chomp
 if d == ""
  break
 end
 d_ary.push d.to_i
end

i = 0
while i < d_ary.length
 s = 0
 x = d_ary[i]
 width = d_ary[i]
 while x < 600
  length = x**2
  s += length * width
  x += d_ary[i]
 end
 puts s
 i += 1
end