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(),x=0,y=0,z=0;
		if(A==B)x++;if(B==C)y++;if(C==A)z++;
		System.out.println(x+y+z==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(),x=0,y=0,z=0;
		if(A==B)x++;if(B==C)y++;if(C==A)z++;
		System.out.println(x+y+z==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(),x=0,y=0,z=0;
		if(A==B)x++;if(B==C)y++;if(C==A)z++;
		System.out.println(x+y+z==1?"Yes":"No");
	} main {
		Scanner s=new Scanner(System.in);
		int A=s.nextInt(),B=s.nextInt(),C=s.nextInt(),x=0,y=0,z=0;
		if(A==B)x++;if(B==C)y++;if(C==A)z++;
		System.out.println(x+y+z==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 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 System.out.println(x+y+z==1?"Yes":"No") System.out.println System.out System System.out x+y+z==1?"Yes":"No" x+y+z==1 x+y+z x+y+z x y z 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(),x=0,y=0,z=0;
		if(A==B)x++;if(B==C)y++;if(C==A)z++;
		System.out.println(x+y+z==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(),x=0,y=0,z=0;
		if(A==B)x++;if(B==C)y++;if(C==A)z++;
		System.out.println(x+y+z==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(),x=0,y=0,z=0;
		if(A==B)x++;if(B==C)y++;if(C==A)z++;
		System.out.println(x+y+z==1?"Yes":"No");
	}
}