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 = 0, b = 0; int[] w = new int[n]; int max = 0; boolean bool = true; for(int i=0; i