Help me in solving LBJ13 problem

My issue

What is the problem in this code … it is showing run time error

My code

import java.util.Scanner;

class Codechef
{
	public static void main (String[] args)
	{
		Scanner read = new Scanner(System.in);
		
		int t = read.nextInt();
		for(int i=0; i<t; i++)
		{
		    int W = read.nextInt();
    		int X = read.nextInt();
    		int Y = read.nextInt();
    		int Z = read.nextInt();
    		// Update your code below this line to solve the problem
            if((X==W) ||(Y==W) ||(Z==W)|| (X+Y==W)||( X+Z==W)||( X+Y+Z==W)){
                System.out.println("YES");
            }
    		else{
    		    System.out.println("NO");
    		}
		}
	}
}

Learning course: Solve Programming problems using Java
Problem Link: Practice problem - Weights Practice Problem in Solve Programming problems using Java - CodeChef

@ies_n_0128
plzz refer the following solution

// Solution as follows
import java.util.Scanner;

class Codechef
{
	public static void main (String[] args)
	{
		Scanner read = new Scanner(System.in);
		
		int t = read.nextInt();
		for(int i=0; i<t; i++)
		{
		    int W = read.nextInt();
    		int X = read.nextInt();
    		int Y = read.nextInt();
    		int Z = read.nextInt();
    		
    		// Condition 1: Check if ingredient can be weighed by all 3 weight together
            if(W == (X + Y + Z)){
                System.out.println("YES");
            }
            
            // Condition 2: Check if ingredient can be weighed by any 2 weights
            else if ((W == (X + Y)) || (W == (X + Z)) || (W == (Y + Z))){
                System.out.println("YES");
            }
            
            // Condition 3: Check if ingredient can be weighed by any 1 weight
            else if ((W == X) || (W == Y) || (W == Z)){
                System.out.println("YES");
            }  
            // Condition 4: If neither of the 3 conditions above is met
            else{
                System.out.println("NO");
            }
		}
	}
}