package yukicoder178; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); long[] a=new long[n];//space long[] b=new long[n];//tab long[] width=new long[n]; long min=999999999; for(int i=0;i