object Main extends App {
	import scala.math._
	val N = scala.io.StdIn.readInt
	val a = scala.io.StdIn.readLine.split(" ").map(_.toInt)
	val b = new Array[Int](N+1)
	val c = new Array[Int](N)
	
	b(0) = (0 - a(0)).abs
	for(i<-1 until N){
		b(i) = (a(i-1) - a(i)).abs
	}
	b(N) = (a(N-1) - 0).abs

/*
	b(i  ) = a(i-1) - a(i)
	b(i+1) = a(i  ) - a(i+1)
*/
	c(0) = (0 - a(1)).abs + b.sum - b(0) - b(1)

	for(i<-1 until N-1){
		c(i) = b.sum - b(i) - b(i+1) + (a(i-1) - a(i+1)).abs
	}
	c(N-1) = b.sum - b(N) - b(N-1) + (a(N-2) - 0).abs

	for(x <- c){
		println(x)
	}
}