object Main extends App {

  def areaOfBlocks(start: Int, step: Int): Int = {
    if (start <= 0) 0
    else start*start*step + areaOfBlocks(start - step, step)
  }

  for (step <- io.Source.stdin.getLines.map(_.toInt))
    println(areaOfBlocks(600-step, step))
}