// Arup Guha
// 1/23/2026
// Solution to COP 4516 Kattis Contest 2 Problem B: Server Space
// https://open.kattis.com/problems/netthjonaplass

import java.util.*;
import java.io.*;

public class netthjonaplass {

	public static void main(String[] args) throws Exception {
	
		// Get numbers and sort them.
		BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(stdin.readLine());
		ArrayList<Integer> x = new ArrayList<Integer>();
		for (int i=0; i<n; i++)
			x.add(Integer.parseInt(stdin.readLine()));
		Collections.sort(x);
		
		// Store answer here.
		StringBuffer sb = new StringBuffer();
		sb.append((2*x.get(0))+"\n");
		int cur = 2*x.get(0);
		
		// Go through servers in order, subtract from last to get width.
		for (int i=1; i<n; i++) {
			int w = x.get(i) - cur;
			cur = x.get(i) + w;
			sb.append((2*w)+"\n");
		}
		
		// Output result.
		System.out.print(sb);
	}
}