object Main extends App {
  import scala.annotation.tailrec

  def high(x: Int): Int = x * x
  def rectangle(y: Int, d: Int): Int = y * d
  def area(d: Int): Int =
    d.until(600, d).foldLeft(0)((acc, n) => acc + rectangle(high(n), d))

  @tailrec
  def loop() {
    val line = scala.io.StdIn.readLine()
    if (line == null) return
    else {
      val d = line.toInt
      println(area(d))
      loop()
    }
  }

  loop()
}