Help me in solving NOWINNER problem

My issue

for 1 2 3 3 the output will be yes but why it shows no

My code

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int r=sc.nextInt();
		for(int i=0;i<r;i++)
		{
		  int a=sc.nextInt();
		  int b=sc.nextInt();
		  int c=sc.nextInt();
		  int m=sc.nextInt();
		int d=Math.min(a,b);
		int g=Math.min(b,c);
		int h=Math.min(d,g);
		int f=h+m;
		if(f==a||f==b||f==c||a==b||b==c||c==a)
		{
		  System.out.println("Yes");
		}
		else{
		  System.out.println("No");
		}
		  
		}
		

	}
}

Problem Link: No Winner Practice Coding Problem