import java.util.Scanner; class Test { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] a = new int[n]; int[] b = new int[n]; int[] w = new int[n]; for(int i=0; i w[j-1]) { temp = w[j]; } } int ans = 0; for(int k=0; k