import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner kbs = new Scanner(System.in);
		int a = kbs.nextInt();
		int b = kbs.nextInt();
		int c = kbs.nextInt();
		
		if(a != b && a != c && b != c) {
			System.out.println("No");
		}
		
		if(a == b && a != c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a == c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a != c && b == c) {
			System.out.println("Yes");
		}
		
		if(a == b && a == c && b == c) {
			System.out.println("No");
		}
		
		kbs.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner kbs = new Scanner(System.in);
		int a = kbs.nextInt();
		int b = kbs.nextInt();
		int c = kbs.nextInt();
		
		if(a != b && a != c && b != c) {
			System.out.println("No");
		}
		
		if(a == b && a != c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a == c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a != c && b == c) {
			System.out.println("Yes");
		}
		
		if(a == b && a == c && b == c) {
			System.out.println("No");
		}
		
		kbs.close();
	}

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

	public static void main(String[] args) {
		Scanner kbs = new Scanner(System.in);
		int a = kbs.nextInt();
		int b = kbs.nextInt();
		int c = kbs.nextInt();
		
		if(a != b && a != c && b != c) {
			System.out.println("No");
		}
		
		if(a == b && a != c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a == c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a != c && b == c) {
			System.out.println("Yes");
		}
		
		if(a == b && a == c && b == c) {
			System.out.println("No");
		}
		
		kbs.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner kbs = new Scanner(System.in);
		int a = kbs.nextInt();
		int b = kbs.nextInt();
		int c = kbs.nextInt();
		
		if(a != b && a != c && b != c) {
			System.out.println("No");
		}
		
		if(a == b && a != c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a == c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a != c && b == c) {
			System.out.println("Yes");
		}
		
		if(a == b && a == c && b == c) {
			System.out.println("No");
		}
		
		kbs.close();
	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner kbs = new Scanner(System.in);
		int a = kbs.nextInt();
		int b = kbs.nextInt();
		int c = kbs.nextInt();
		
		if(a != b && a != c && b != c) {
			System.out.println("No");
		}
		
		if(a == b && a != c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a == c && b != c) {
			System.out.println("Yes");
		}
		
		if(a != b && a != c && b == c) {
			System.out.println("Yes");
		}
		
		if(a == b && a == c && b == c) {
			System.out.println("No");
		}
		
		kbs.close();
	}

}
