int [] a_array = Arrays.stream(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
Integer [] a_arr = Arrays.stream(a_array).boxed().toArray(Integer[]::new);
int [] f_array = Arrays.stream(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
Integer [] f_arr = Arrays.stream(f_array).boxed().toArray(Integer[]::new);
ArrayList<Integer> a = new ArrayList<>(Arrays.asList(a_arr));
ArrayList<Integer> f = new ArrayList<>(Arrays.asList(f_arr));
Collections.sort(a,Collections.reverseOrder());
Collections.sort(f);