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

public class Main {

	final static long MOD = 1000000007;
	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();
		String[] Ws = W.split(" ");
		Arrays.sort(Ws);

		String ans = "Yes";
		if(Ws[0].equals(Ws[1])){
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		}else if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		}
		System.out.println(ans);

	}

} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	final static long MOD = 1000000007;
	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();
		String[] Ws = W.split(" ");
		Arrays.sort(Ws);

		String ans = "Yes";
		if(Ws[0].equals(Ws[1])){
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		}else if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		}
		System.out.println(ans);

	}

} Main final static long MOD = 1000000007; MOD 1000000007 public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();
		String[] Ws = W.split(" ");
		Arrays.sort(Ws);

		String ans = "Yes";
		if(Ws[0].equals(Ws[1])){
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		}else if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		}
		System.out.println(ans);

	} main {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();
		String[] Ws = W.split(" ");
		Arrays.sort(Ws);

		String ans = "Yes";
		if(Ws[0].equals(Ws[1])){
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		}else if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		}
		System.out.println(ans);

	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String W = in.readLine(); W in.readLine() in.readLine in String[] Ws = W.split(" "); Ws W.split(" ") W.split W " " Arrays.sort(Ws) Arrays.sort Arrays Ws String ans = "Yes"; ans "Yes" if(Ws[0].equals(Ws[1])){
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		}else if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		} Ws[0].equals(Ws[1]) Ws[0].equals Ws[0] Ws 0 Ws[1] Ws 1 {
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		} if(Ws[1].equals(Ws[2])){
				ans = "No";
			} Ws[1].equals(Ws[2]) Ws[1].equals Ws[1] Ws 1 Ws[2] Ws 2 {
				ans = "No";
			} ans = "No" ans "No" if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		} Ws[2].equals(Ws[1]) Ws[2].equals Ws[2] Ws 2 Ws[1] Ws 1 {

		} {
			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 {

	final static long MOD = 1000000007;
	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();
		String[] Ws = W.split(" ");
		Arrays.sort(Ws);

		String ans = "Yes";
		if(Ws[0].equals(Ws[1])){
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		}else if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		}
		System.out.println(ans);

	}

} public class Main {

	final static long MOD = 1000000007;
	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();
		String[] Ws = W.split(" ");
		Arrays.sort(Ws);

		String ans = "Yes";
		if(Ws[0].equals(Ws[1])){
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		}else if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		}
		System.out.println(ans);

	}

} Main
import java.io.*;
import java.util.*;

public class Main {

	final static long MOD = 1000000007;
	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();
		String[] Ws = W.split(" ");
		Arrays.sort(Ws);

		String ans = "Yes";
		if(Ws[0].equals(Ws[1])){
			if(Ws[1].equals(Ws[2])){
				ans = "No";
			}
		}else if(Ws[2].equals(Ws[1])){

		}else{
			ans="No";
		}
		System.out.println(ans);

	}

}
