import scala.io.Source.stdin

object Main extends App {
  for(d<-stdin.getLines.map(_.toInt)) {
    var (j,s) = (0,0)
    while(j*d < 600) {
      s += j*j
      j += 1
    }
    println(s*d*d*d)
  }
}