import scala.io.Source.stdin

object Main extends App {
  val b = new StringBuilder

  for(d<-stdin.getLines.map(_.toInt)) {
    var i = 0
    var s = 0
    while(i*d < 600) {
      s += i*i
      i += 1
    }
    b.append(s*d*d*d+"\n")
  }
  print(b.result)
}