import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int A = Integer.parseInt(s[0]);
		int B = Integer.parseInt(s[1]);
		int C = Integer.parseInt(s[2]);
		
		if((A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A))
			out.println("Yes");
		else
			out.println("No");
	
	}
}

 import java.io.*; io.* java import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int A = Integer.parseInt(s[0]);
		int B = Integer.parseInt(s[1]);
		int C = Integer.parseInt(s[2]);
		
		if((A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A))
			out.println("Yes");
		else
			out.println("No");
	
	}
} Main public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int A = Integer.parseInt(s[0]);
		int B = Integer.parseInt(s[1]);
		int C = Integer.parseInt(s[2]);
		
		if((A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A))
			out.println("Yes");
		else
			out.println("No");
	
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int A = Integer.parseInt(s[0]);
		int B = Integer.parseInt(s[1]);
		int C = Integer.parseInt(s[2]);
		
		if((A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A))
			out.println("Yes");
		else
			out.println("No");
	
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String []s=br.readLine().split(" "); s br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int A = Integer.parseInt(s[0]); A Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int B = Integer.parseInt(s[1]); B Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int C = Integer.parseInt(s[2]); C Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 if((A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A))
			out.println("Yes");
		else
			out.println("No"); (A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A) (A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A) (A==B && C!=A) A==B A B C!=A C A (A==C && C!=B) A==C A C C!=B C B (B==C && C!=A) B==C B C C!=A C A out.println("Yes") out.println out "Yes" out.println("No") out.println out "No" String []args args public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int A = Integer.parseInt(s[0]);
		int B = Integer.parseInt(s[1]);
		int C = Integer.parseInt(s[2]);
		
		if((A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A))
			out.println("Yes");
		else
			out.println("No");
	
	}
} public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int A = Integer.parseInt(s[0]);
		int B = Integer.parseInt(s[1]);
		int C = Integer.parseInt(s[2]);
		
		if((A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A))
			out.println("Yes");
		else
			out.println("No");
	
	}
} Main
import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int A = Integer.parseInt(s[0]);
		int B = Integer.parseInt(s[1]);
		int C = Integer.parseInt(s[2]);
		
		if((A==B && C!=A) || (A==C && C!=B) || (B==C && C!=A))
			out.println("Yes");
		else
			out.println("No");
	
	}
}


