fun readInts() = readLine()!!.split(' ').map(String::toInt)

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val aa = readInts()
    val bb = (0..n).map {
        Math.abs(when(it) {
            0 -> aa[it]
            n -> aa[it - 1]
            else -> aa[it] - aa[it - 1]
        })
    }
    val bsum = bb.sum()
    repeat(n) {
        val t = Math.abs(when(it) {
            0 -> aa[it + 1]
            n - 1 -> aa[it - 1]
            else -> aa[it + 1] - aa[it - 1]
        })
        println(bsum - bb[it] - bb[it + 1] + t)
    }
}
