import scala.io.Source.stdin

object Main extends App {
  var b = new StringBuilder

  for(d<-stdin.getLines.map(_.toInt)) {
    var (j,s) = (0,0)

    while((j-1)*d < 600-d) {
      s += j*j*d*d*d
      j += 1
    }
    b.append(s+"\n")
  }

  print(b.result)
}