For this Question: Pino is super fond of candies. Today she has A chocolate candies, B orange candies, and C unknown candies. You are also given the happiness she gets after eating a particular candy. 
She wants to have exactly X chocolate candies and Y orange candies. She can transform an unknown candy into a candy of any type (chocolate or orange).
Find the maximum happiness she can attain.The first line of input contains 5 integers X, Y, A, B, and C.
The second line contains an A integer corresponding to the happiness of the various chocolate candies.
The third line contains B integers corresponding to the happiness of the various orange candies.
The fourth line contains C integers corresponding to the happiness of the various unknown candies.

<b>Constraints:-</b>
1 <= A, B, C <= 100000
1 <= X <= A
1 <= Y <= B
1 <= happiness of any candy <= 1000000000 (10^9)Output a single integer, the maximum happiness Pino can achieve by eating the candies.Sample Input 1:-
1 2 2 2 1
2 4
5 1
3

Sample Output 1:-
12

Sample Input 2:-
2 2 2 2 2
8 6
9 1
2 1

Sample Output 2:-
25

<b>Explanation:-</b>
Pino eats the 2nd chocolate candy (happiness=4), then eats the 1st orange candy (happiness=4+5=9), then transforms the first unknown candy to orange candy and eats it (happiness=9+3=12), I have written this Solution Code: import java.io.*;
import java.util.*;

class Main {
	public static void main (String[] args)throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		String str[] = read.readLine().split(" ");

		int X = Integer.parseInt(str[0]);
		int Y = Integer.parseInt(str[1]);
		int A = Integer.parseInt(str[2]);
		int B = Integer.parseInt(str[3]);
		int C = Integer.parseInt(str[4]);
        int arr[] = new int[X+Y+C];
		int arrA[] = new int[A];
		int arrB[] = new int[B];
		int arrC[] = new int[C];


		String strA[] = read.readLine().split(" ");

        for(int k = 0; k < A; k++) {
            arrA[k] = Integer.parseInt(strA[k]);
        }

		Arrays.sort(arrA);

		String strB[] = read.readLine().split(" ");

		for(int p = 0; p < B; p++) {
            arrB[p] = Integer.parseInt(strB[p]);
        }
		Arrays.sort(arrB);


		String strC[] = read.readLine().split(" ");


		for(int q = 0; q < C; q++) {
            arrC[q] = Integer.parseInt(strC[q]);
        }

		Arrays.sort(arrC);

		System.arraycopy(arrA, arrA.length - X, arr, 0, X);
		System.arraycopy(arrB, arrB.length - Y, arr, X, Y);
		System.arraycopy(arrC, 0, arr, X+Y, C);

		Arrays.sort(arr);

		long happiness = 0;
		int lastIndex = arr.length - 1;

		int candies = 0;

		for(int z = lastIndex; z >= 0; z--) {
			happiness += arr[z];
			candies++;

			if(candies == X + Y) {
				break;
			}
		}

		System.out.print(happiness);


    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?