function Main(input){
	input=input.split(/\n|\s/);
	input.forEach(function(e,i,a){a[i]=Number(a[i]);});
	var ans="";
	for(var i=1;i<=input[0];i=(i+1)|0){
		var ic=0;
		var kr=0;
		for(var j=1;j<=input[0]+1;j=(j+1)|0){
			if(i!==j){
				kr+=((input[j]-ic)^((input[j]-ic)>>31))-((input[j]-ic)>>31);
				ic=input[j];
			}
		}
		ans+=kr+"\n";
	}
	ans=ans.slice(0,ans.length-1);
	console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));