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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			list.add(tmp);
		}

		if(isPoor(list)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

	static boolean isPoor(List<Integer> list) {
		list.sort(null);

		int A = list.get(0);
		int B = list.get(1);
		int C = list.get(2);

		if(A == B) {
			if(B != C) {
				return true;
			}
		} else {
			if(B == C) {
				return true;
			}
		}
		return false;
	}

} 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) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			list.add(tmp);
		}

		if(isPoor(list)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

	static boolean isPoor(List<Integer> list) {
		list.sort(null);

		int A = list.get(0);
		int B = list.get(1);
		int C = list.get(2);

		if(A == B) {
			if(B != C) {
				return true;
			}
		} else {
			if(B == C) {
				return true;
			}
		}
		return false;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			list.add(tmp);
		}

		if(isPoor(list)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			list.add(tmp);
		}

		if(isPoor(list)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> list = new ArrayList<>(); list new ArrayList<>() for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			list.add(tmp);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			int tmp = sc.nextInt();
			list.add(tmp);
		} {
			int tmp = sc.nextInt();
			list.add(tmp);
		} int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc list.add(tmp) list.add list tmp if(isPoor(list)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} isPoor(list) isPoor list {
			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 static boolean isPoor(List<Integer> list) {
		list.sort(null);

		int A = list.get(0);
		int B = list.get(1);
		int C = list.get(2);

		if(A == B) {
			if(B != C) {
				return true;
			}
		} else {
			if(B == C) {
				return true;
			}
		}
		return false;
	} isPoor {
		list.sort(null);

		int A = list.get(0);
		int B = list.get(1);
		int C = list.get(2);

		if(A == B) {
			if(B != C) {
				return true;
			}
		} else {
			if(B == C) {
				return true;
			}
		}
		return false;
	} list.sort(null) list.sort list null int A = list.get(0); A list.get(0) list.get list 0 int B = list.get(1); B list.get(1) list.get list 1 int C = list.get(2); C list.get(2) list.get list 2 if(A == B) {
			if(B != C) {
				return true;
			}
		} else {
			if(B == C) {
				return true;
			}
		} A == B A B {
			if(B != C) {
				return true;
			}
		} if(B != C) {
				return true;
			} B != C B C {
				return true;
			} return true; true {
			if(B == C) {
				return true;
			}
		} if(B == C) {
				return true;
			} B == C B C {
				return true;
			} return true; true return false; false List<Integer> list list public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			list.add(tmp);
		}

		if(isPoor(list)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

	static boolean isPoor(List<Integer> list) {
		list.sort(null);

		int A = list.get(0);
		int B = list.get(1);
		int C = list.get(2);

		if(A == B) {
			if(B != C) {
				return true;
			}
		} else {
			if(B == C) {
				return true;
			}
		}
		return false;
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			list.add(tmp);
		}

		if(isPoor(list)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

	static boolean isPoor(List<Integer> list) {
		list.sort(null);

		int A = list.get(0);
		int B = list.get(1);
		int C = list.get(2);

		if(A == B) {
			if(B != C) {
				return true;
			}
		} else {
			if(B == C) {
				return true;
			}
		}
		return false;
	}

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			list.add(tmp);
		}

		if(isPoor(list)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

	static boolean isPoor(List<Integer> list) {
		list.sort(null);

		int A = list.get(0);
		int B = list.get(1);
		int C = list.get(2);

		if(A == B) {
			if(B != C) {
				return true;
			}
		} else {
			if(B == C) {
				return true;
			}
		}
		return false;
	}

}
