import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ solver(); } static void solver(){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); long[] x=new long[n]; for(int i=0;i