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

public class Main {

	public static void main(String[] args) {
		// 自分の得意な言語で
		// Let's チャレンジ！！

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String re = "No";

		Set<Integer> se = new HashSet<>();
		se.add(a);
		se.add(b);
		se.add(c);

		if (se.size() == 2) {
			re = "Yes";
		}

		System.out.println(re);
	}

} 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) {
		// 自分の得意な言語で
		// Let's チャレンジ！！

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String re = "No";

		Set<Integer> se = new HashSet<>();
		se.add(a);
		se.add(b);
		se.add(c);

		if (se.size() == 2) {
			re = "Yes";
		}

		System.out.println(re);
	}

} Main public static void main(String[] args) {
		// 自分の得意な言語で
		// Let's チャレンジ！！

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String re = "No";

		Set<Integer> se = new HashSet<>();
		se.add(a);
		se.add(b);
		se.add(c);

		if (se.size() == 2) {
			re = "Yes";
		}

		System.out.println(re);
	} main {
		// 自分の得意な言語で
		// Let's チャレンジ！！

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String re = "No";

		Set<Integer> se = new HashSet<>();
		se.add(a);
		se.add(b);
		se.add(c);

		if (se.size() == 2) {
			re = "Yes";
		}

		System.out.println(re);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc String re = "No"; re "No" Set<Integer> se = new HashSet<>(); se new HashSet<>() se.add(a) se.add se a se.add(b) se.add se b se.add(c) se.add se c if (se.size() == 2) {
			re = "Yes";
		} se.size() == 2 se.size() se.size se 2 {
			re = "Yes";
		} re = "Yes" re "Yes" System.out.println(re) System.out.println System.out System System.out re String[] args args public class Main {

	public static void main(String[] args) {
		// 自分の得意な言語で
		// Let's チャレンジ！！

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String re = "No";

		Set<Integer> se = new HashSet<>();
		se.add(a);
		se.add(b);
		se.add(c);

		if (se.size() == 2) {
			re = "Yes";
		}

		System.out.println(re);
	}

} public class Main {

	public static void main(String[] args) {
		// 自分の得意な言語で
		// Let's チャレンジ！！

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String re = "No";

		Set<Integer> se = new HashSet<>();
		se.add(a);
		se.add(b);
		se.add(c);

		if (se.size() == 2) {
			re = "Yes";
		}

		System.out.println(re);
	}

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

public class Main {

	public static void main(String[] args) {
		// 自分の得意な言語で
		// Let's チャレンジ！！

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String re = "No";

		Set<Integer> se = new HashSet<>();
		se.add(a);
		se.add(b);
		se.add(c);

		if (se.size() == 2) {
			re = "Yes";
		}

		System.out.println(re);
	}

}