import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		}
	}
} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		}
	} try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		} {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) 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 List<Integer> lst = new ArrayList<Integer>(); lst new ArrayList<Integer>() lst.add(a) lst.add lst a lst.add(b) lst.add lst b lst.add(c) lst.add lst c long count = lst.stream().distinct().count(); count lst.stream().distinct().count() lst.stream().distinct().count lst.stream().distinct() lst.stream().distinct lst.stream() lst.stream lst System.out.println(count == 2 ? "Yes" : "No") System.out.println System.out System System.out count == 2 ? "Yes" : "No" count == 2 count 2 "Yes" "No" String[] args args public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		}
	}
} public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		}
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			List<Integer> lst = new ArrayList<Integer>();
			lst.add(a);
			lst.add(b);
			lst.add(c);
			
			long count = lst.stream().distinct().count();
			
			System.out.println(count == 2 ? "Yes" : "No");
			
		}
	}
}