import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int A = s.nextInt(), B = s.nextInt(), C = s.nextInt();
		int x = 0, y = 0, z = 0;
		if(A == B) x++;
		if(B == C) y++;
		if(C == A) z++;
		int r = x + y + z;
		System.out.println(r == 1 ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int A = s.nextInt(), B = s.nextInt(), C = s.nextInt();
		int x = 0, y = 0, z = 0;
		if(A == B) x++;
		if(B == C) y++;
		if(C == A) z++;
		int r = x + y + z;
		System.out.println(r == 1 ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int A = s.nextInt(), B = s.nextInt(), C = s.nextInt();
		int x = 0, y = 0, z = 0;
		if(A == B) x++;
		if(B == C) y++;
		if(C == A) z++;
		int r = x + y + z;
		System.out.println(r == 1 ? "Yes" : "No");
	} main {
		Scanner s = new Scanner(System.in);
		int A = s.nextInt(), B = s.nextInt(), C = s.nextInt();
		int x = 0, y = 0, z = 0;
		if(A == B) x++;
		if(B == C) y++;
		if(C == A) z++;
		int r = x + y + z;
		System.out.println(r == 1 ? "Yes" : "No");
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int A = s.nextInt() A s.nextInt() s.nextInt s B = s.nextInt() B s.nextInt() s.nextInt s C = s.nextInt(); C s.nextInt() s.nextInt s int x = 0 x 0 y = 0 y 0 z = 0; z 0 if(A == B) x++; A == B A B x++ x if(B == C) y++; B == C B C y++ y if(C == A) z++; C == A C A z++ z int r = x + y + z; r x + y + z x + y + z x y z System.out.println(r == 1 ? "Yes" : "No") System.out.println System.out System System.out r == 1 ? "Yes" : "No" r == 1 r 1 "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int A = s.nextInt(), B = s.nextInt(), C = s.nextInt();
		int x = 0, y = 0, z = 0;
		if(A == B) x++;
		if(B == C) y++;
		if(C == A) z++;
		int r = x + y + z;
		System.out.println(r == 1 ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int A = s.nextInt(), B = s.nextInt(), C = s.nextInt();
		int x = 0, y = 0, z = 0;
		if(A == B) x++;
		if(B == C) y++;
		if(C == A) z++;
		int r = x + y + z;
		System.out.println(r == 1 ? "Yes" : "No");
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int A = s.nextInt(), B = s.nextInt(), C = s.nextInt();
		int x = 0, y = 0, z = 0;
		if(A == B) x++;
		if(B == C) y++;
		if(C == A) z++;
		int r = x + y + z;
		System.out.println(r == 1 ? "Yes" : "No");
	}
}