import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextInt()
  val a = (1..n).map { sc.nextInt() }


  val dis = mutableListOf<Int>()
  dis.add(Math.abs(a[0]))
  for (i in 0 until n-1) {
    val tmp = Math.abs(a[i+1] - a[i])
    dis.add(tmp)
  }
  dis.add(Math.abs(a[n-1]))

  val sum = dis.sum()

  val list = mutableListOf<Int>()
  list.add(0)
  list.addAll(a)
  list.add(0)

  val ans = mutableListOf<Int>()
  for (i in 1 until list.size - 1) {
    val pre = list[i-1]
    val now = list[i]
    val suf = list[i+1]

    val tmp = sum - Math.abs(now - pre) - Math.abs(suf - now) + Math.abs(suf - pre)
    ans.add(tmp)

  }

  println(ans.joinToString("\n"))

}