#!/usr/local/bin/ruby
a=0
sum=0
def f(x)
   return x*x
end
while line=gets
   d=line.to_i
   for i in 0..(600-2*d)/d
      a=a+d
      sum+=f(a)
   end
   ans=sum*d
   puts "#{ans}"
   a,ans,sum=0,0,0
end