import scala.io.Source.stdin

object Main extends App {
  var b = new StringBuilder

  def integral(i:Int,s:Int,d:Int):Unit = if(i*d >= 600-d) b.append((s + i*i*d*d*d)+"\n") else integral (i+1, s + i*i*d*d*d, d)

  for(i<-stdin.getLines)
    integral(0,0,i.toInt)

  print(b.result)
}