

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	private static BufferedReader br;
	
	public static void main(String[] args) throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		if((a != b || a !=c || b!=c) && (a == b || a ==c || b==c)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	private static BufferedReader br;
	
	public static void main(String[] args) throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		if((a != b || a !=c || b!=c) && (a == b || a ==c || b==c)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main private static BufferedReader br; br public static void main(String[] args) throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		if((a != b || a !=c || b!=c) && (a == b || a ==c || b==c)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		if((a != b || a !=c || b!=c) && (a == b || a ==c || b==c)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int c = Integer.parseInt(line[2]); c Integer.parseInt(line[2]) Integer.parseInt Integer line[2] line 2 if((a != b || a !=c || b!=c) && (a == b || a ==c || b==c)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} (a != b || a !=c || b!=c) && (a == b || a ==c || b==c) (a != b || a !=c || b!=c) a != b || a !=c || b!=c a != b a b a !=c a c b!=c b c (a == b || a ==c || b==c) a == b || a ==c || b==c a == b a b a ==c a c b==c b c {
			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 {

	private static BufferedReader br;
	
	public static void main(String[] args) throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		if((a != b || a !=c || b!=c) && (a == b || a ==c || b==c)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} public class Main {

	private static BufferedReader br;
	
	public static void main(String[] args) throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		if((a != b || a !=c || b!=c) && (a == b || a ==c || b==c)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	private static BufferedReader br;
	
	public static void main(String[] args) throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		int c = Integer.parseInt(line[2]);
		
		if((a != b || a !=c || b!=c) && (a == b || a ==c || b==c)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

}
