object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val n, l = sc.nextInt
    val apples = (l until l + n).toList
    println(apples.sum - apples.minBy(_.abs))
  }
}