import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
      	int b = scn.nextInt();
      	int c = scn.nextInt();
      	String ans = "No";
      	if((a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a)) ans = "Yes";
      	System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
      	int b = scn.nextInt();
      	int c = scn.nextInt();
      	String ans = "No";
      	if((a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a)) ans = "Yes";
      	System.out.println(ans);
	}
} Main public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
      	int b = scn.nextInt();
      	int c = scn.nextInt();
      	String ans = "No";
      	if((a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a)) ans = "Yes";
      	System.out.println(ans);
	} main {
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
      	int b = scn.nextInt();
      	int c = scn.nextInt();
      	String ans = "No";
      	if((a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a)) ans = "Yes";
      	System.out.println(ans);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int a = scn.nextInt(); a scn.nextInt() scn.nextInt scn int b = scn.nextInt(); b scn.nextInt() scn.nextInt scn int c = scn.nextInt(); c scn.nextInt() scn.nextInt scn String ans = "No"; ans "No" if((a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a)) ans = "Yes"; (a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a) (a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a) (a==b&&a!=c) a==b a b a!=c a c (a==c&&a!=b) a==c a c a!=b a b (b==c&&b!=a) b==c b c b!=a b a ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
      	int b = scn.nextInt();
      	int c = scn.nextInt();
      	String ans = "No";
      	if((a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a)) ans = "Yes";
      	System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
      	int b = scn.nextInt();
      	int c = scn.nextInt();
      	String ans = "No";
      	if((a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a)) ans = "Yes";
      	System.out.println(ans);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
      	int b = scn.nextInt();
      	int c = scn.nextInt();
      	String ans = "No";
      	if((a==b&&a!=c) || (a==c&&a!=b) || (b==c&&b!=a)) ans = "Yes";
      	System.out.println(ans);
	}
}