import scala.io.StdIn

object Main extends App {

  val n = StdIn.readLine().toInt
  val a = ("0 " + StdIn.readLine() + " 0 0").split(' ').map(_.toInt)
  // println(a.mkString(" "))

  val alls = (0 to n by 2).foldLeft(0) { (acc, idx) =>
    acc + math.abs(a(idx + 1) - a(idx)) + math.abs(a(idx + 2) - a(idx + 1))
  }
  //println(alls)

  (1 to n).foreach { i =>
    println(alls - math.abs(a(i) - a(i - 1)) - math.abs(a(i + 1) - a(i)) + math.abs(a(i + 1) - a(i - 1)))
  }

}
