object Main extends App {

  Stream.continually(readInt)
    .map(area(x => x * x))
    .foreach(println)

  def area(f: Long => Long)(d: Int): Long = {
    Range(0, 600, d).map(_.toLong).map(dd => d * f(dd)).sum
  }
}
