import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] nums = new int[3];
		for(int i=0; i<3; i++)
			nums[i]=sc.nextInt();
		Arrays.sort(nums);
		if(nums[0]==nums[1]) {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}else {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] nums = new int[3];
		for(int i=0; i<3; i++)
			nums[i]=sc.nextInt();
		Arrays.sort(nums);
		if(nums[0]==nums[1]) {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}else {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] nums = new int[3];
		for(int i=0; i<3; i++)
			nums[i]=sc.nextInt();
		Arrays.sort(nums);
		if(nums[0]==nums[1]) {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}else {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int[] nums = new int[3];
		for(int i=0; i<3; i++)
			nums[i]=sc.nextInt();
		Arrays.sort(nums);
		if(nums[0]==nums[1]) {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}else {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] nums = new int[3]; nums new int[3] 3 for(int i=0; i<3; i++)
			nums[i]=sc.nextInt(); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i nums[i]=sc.nextInt(); nums[i]=sc.nextInt() nums[i] nums i sc.nextInt() sc.nextInt sc Arrays.sort(nums) Arrays.sort Arrays nums if(nums[0]==nums[1]) {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}else {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		} nums[0]==nums[1] nums[0] nums 0 nums[1] nums 1 {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		} if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No"); nums[1]!=nums[2] nums[1] nums 1 nums[2] nums 2 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" {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		} if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No"); nums[1]==nums[2] nums[1] nums 1 nums[2] nums 2 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) {
		Scanner sc = new Scanner(System.in);
		int[] nums = new int[3];
		for(int i=0; i<3; i++)
			nums[i]=sc.nextInt();
		Arrays.sort(nums);
		if(nums[0]==nums[1]) {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}else {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] nums = new int[3];
		for(int i=0; i<3; i++)
			nums[i]=sc.nextInt();
		Arrays.sort(nums);
		if(nums[0]==nums[1]) {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}else {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] nums = new int[3];
		for(int i=0; i<3; i++)
			nums[i]=sc.nextInt();
		Arrays.sort(nums);
		if(nums[0]==nums[1]) {
			if(nums[1]!=nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}else {
			if(nums[1]==nums[2])
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	}

}
