import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		}
		
		Set<Integer> list = new HashSet<Integer>();
		int cnt = 0;
		for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} 
		
		if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");}
		

	}

} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		}
		
		Set<Integer> list = new HashSet<Integer>();
		int cnt = 0;
		for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} 
		
		if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");}
		

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		}
		
		Set<Integer> list = new HashSet<Integer>();
		int cnt = 0;
		for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} 
		
		if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");}
		

	} main {
		Scanner scan = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		}
		
		Set<Integer> list = new HashSet<Integer>();
		int cnt = 0;
		for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} 
		
		if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");}
		

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] nums = new int[3]; nums new int[3] 3 for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			nums[i] = scan.nextInt();
		} {
			nums[i] = scan.nextInt();
		} nums[i] = scan.nextInt() nums[i] nums i scan.nextInt() scan.nextInt scan Set<Integer> list = new HashSet<Integer>(); list new HashSet<Integer>() int cnt = 0; cnt 0 for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} int x nums {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			} list.contains(x) list.contains list x {
				cnt++;
			} cnt++ cnt {
				list.add(x);
			} list.add(x) list.add list x if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");} cnt == 1 cnt 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("No") System.out.println System.out System System.out "No" String[] args args public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		}
		
		Set<Integer> list = new HashSet<Integer>();
		int cnt = 0;
		for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} 
		
		if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");}
		

	}

} public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		}
		
		Set<Integer> list = new HashSet<Integer>();
		int cnt = 0;
		for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} 
		
		if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");}
		

	}

} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) {
			nums[i] = scan.nextInt();
		}
		
		Set<Integer> list = new HashSet<Integer>();
		int cnt = 0;
		for (int x : nums) {
			if (list.contains(x)) {
				cnt++;
			} else {
				list.add(x);
			}
		} 
		
		if (cnt == 1) {
			System.out.println("Yes");
		} else {System.out.println("No");}
		

	}

}