import java.util.Scanner;

public class Main
{

	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int r1 = scan.nextInt();
		int r2 = scan.nextInt();
		int r3 = scan.nextInt();
		boolean flg = false;
		//String str = scan.nextLine();
		//String[] substr = str.split(" ", 0);
		if (r1 == r2 ) {
			flg = true;
		}
		String ans = "Yes";
		if (flg ) {
			if (r1 == r3) {
				ans = "No";
			}
		} else {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		}
		//int ans = 0;
		//for (int i=c1; i<c2+1;i++) {
		//}
		System.out.println(ans);
	}

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

	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int r1 = scan.nextInt();
		int r2 = scan.nextInt();
		int r3 = scan.nextInt();
		boolean flg = false;
		//String str = scan.nextLine();
		//String[] substr = str.split(" ", 0);
		if (r1 == r2 ) {
			flg = true;
		}
		String ans = "Yes";
		if (flg ) {
			if (r1 == r3) {
				ans = "No";
			}
		} else {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		}
		//int ans = 0;
		//for (int i=c1; i<c2+1;i++) {
		//}
		System.out.println(ans);
	}

} Main public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int r1 = scan.nextInt();
		int r2 = scan.nextInt();
		int r3 = scan.nextInt();
		boolean flg = false;
		//String str = scan.nextLine();
		//String[] substr = str.split(" ", 0);
		if (r1 == r2 ) {
			flg = true;
		}
		String ans = "Yes";
		if (flg ) {
			if (r1 == r3) {
				ans = "No";
			}
		} else {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		}
		//int ans = 0;
		//for (int i=c1; i<c2+1;i++) {
		//}
		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		int r1 = scan.nextInt();
		int r2 = scan.nextInt();
		int r3 = scan.nextInt();
		boolean flg = false;
		//String str = scan.nextLine();
		//String[] substr = str.split(" ", 0);
		if (r1 == r2 ) {
			flg = true;
		}
		String ans = "Yes";
		if (flg ) {
			if (r1 == r3) {
				ans = "No";
			}
		} else {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		}
		//int ans = 0;
		//for (int i=c1; i<c2+1;i++) {
		//}
		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int r1 = scan.nextInt(); r1 scan.nextInt() scan.nextInt scan int r2 = scan.nextInt(); r2 scan.nextInt() scan.nextInt scan int r3 = scan.nextInt(); r3 scan.nextInt() scan.nextInt scan boolean flg = false; flg false if (r1 == r2 ) {
			flg = true;
		} r1 == r2 r1 r2 {
			flg = true;
		} flg = true flg true String ans = "Yes"; ans "Yes" if (flg ) {
			if (r1 == r3) {
				ans = "No";
			}
		} else {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		} flg {
			if (r1 == r3) {
				ans = "No";
			}
		} if (r1 == r3) {
				ans = "No";
			} r1 == r3 r1 r3 {
				ans = "No";
			} ans = "No" ans "No" {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		} if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			} r1 == r3 || r2 == r3 r1 == r3 r1 r3 r2 == r3 r2 r3 {
				ans = "Yes";
			} ans = "Yes" ans "Yes" {
				ans = "No";
			} ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main
{

	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int r1 = scan.nextInt();
		int r2 = scan.nextInt();
		int r3 = scan.nextInt();
		boolean flg = false;
		//String str = scan.nextLine();
		//String[] substr = str.split(" ", 0);
		if (r1 == r2 ) {
			flg = true;
		}
		String ans = "Yes";
		if (flg ) {
			if (r1 == r3) {
				ans = "No";
			}
		} else {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		}
		//int ans = 0;
		//for (int i=c1; i<c2+1;i++) {
		//}
		System.out.println(ans);
	}

} public class Main
{

	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int r1 = scan.nextInt();
		int r2 = scan.nextInt();
		int r3 = scan.nextInt();
		boolean flg = false;
		//String str = scan.nextLine();
		//String[] substr = str.split(" ", 0);
		if (r1 == r2 ) {
			flg = true;
		}
		String ans = "Yes";
		if (flg ) {
			if (r1 == r3) {
				ans = "No";
			}
		} else {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		}
		//int ans = 0;
		//for (int i=c1; i<c2+1;i++) {
		//}
		System.out.println(ans);
	}

} Main
import java.util.Scanner;

public class Main
{

	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int r1 = scan.nextInt();
		int r2 = scan.nextInt();
		int r3 = scan.nextInt();
		boolean flg = false;
		//String str = scan.nextLine();
		//String[] substr = str.split(" ", 0);
		if (r1 == r2 ) {
			flg = true;
		}
		String ans = "Yes";
		if (flg ) {
			if (r1 == r3) {
				ans = "No";
			}
		} else {
			if (r1 == r3 || r2 == r3) {
				ans = "Yes";
			} else {
				ans = "No";
			}
		}
		//int ans = 0;
		//for (int i=c1; i<c2+1;i++) {
		//}
		System.out.println(ans);
	}

}