/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		Set<Integer> map = new HashSet<Integer>();
		map.add(a);
		int count = 0;
		if(map.contains(b)){
			count++;
		}else map.add(b);
		if(map.contains(c)){
			count++;
		}else map.add(c);
		if(count == 1){
			System.out.println("Yes");
		}else System.out.println("No");
		
		// your code goes here
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		Set<Integer> map = new HashSet<Integer>();
		map.add(a);
		int count = 0;
		if(map.contains(b)){
			count++;
		}else map.add(b);
		if(map.contains(c)){
			count++;
		}else map.add(c);
		if(count == 1){
			System.out.println("Yes");
		}else System.out.println("No");
		
		// your code goes here
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		Set<Integer> map = new HashSet<Integer>();
		map.add(a);
		int count = 0;
		if(map.contains(b)){
			count++;
		}else map.add(b);
		if(map.contains(c)){
			count++;
		}else map.add(c);
		if(count == 1){
			System.out.println("Yes");
		}else System.out.println("No");
		
		// your code goes here
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		Set<Integer> map = new HashSet<Integer>();
		map.add(a);
		int count = 0;
		if(map.contains(b)){
			count++;
		}else map.add(b);
		if(map.contains(c)){
			count++;
		}else map.add(c);
		if(count == 1){
			System.out.println("Yes");
		}else System.out.println("No");
		
		// your code goes here
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan Set<Integer> map = new HashSet<Integer>(); map new HashSet<Integer>() map.add(a) map.add map a int count = 0; count 0 if(map.contains(b)){
			count++;
		}else map.add(b); map.contains(b) map.contains map b {
			count++;
		} count++ count map.add(b) map.add map b if(map.contains(c)){
			count++;
		}else map.add(c); map.contains(c) map.contains map c {
			count++;
		} count++ count map.add(c) map.add map c if(count == 1){
			System.out.println("Yes");
		}else System.out.println("No"); count == 1 count 1 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		Set<Integer> map = new HashSet<Integer>();
		map.add(a);
		int count = 0;
		if(map.contains(b)){
			count++;
		}else map.add(b);
		if(map.contains(c)){
			count++;
		}else map.add(c);
		if(count == 1){
			System.out.println("Yes");
		}else System.out.println("No");
		
		// your code goes here
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		Set<Integer> map = new HashSet<Integer>();
		map.add(a);
		int count = 0;
		if(map.contains(b)){
			count++;
		}else map.add(b);
		if(map.contains(c)){
			count++;
		}else map.add(c);
		if(count == 1){
			System.out.println("Yes");
		}else System.out.println("No");
		
		// your code goes here
	}
} Main
/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		Set<Integer> map = new HashSet<Integer>();
		map.add(a);
		int count = 0;
		if(map.contains(b)){
			count++;
		}else map.add(b);
		if(map.contains(c)){
			count++;
		}else map.add(c);
		if(count == 1){
			System.out.println("Yes");
		}else System.out.println("No");
		
		// your code goes here
	}
}