object Main {
    def main(args: Array[String]) = {
        val in = io.Source.stdin.getLines.map(_.toInt)
        in.foreach(d => println(Seq.fill(600/d)(d).scanLeft(0)(_ + _).init.map(x => d*x*x).sum))
    }
}