import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
        String answer = "YES";
        Scanner s = new Scanner(System.in);
        int a = Integer.parseInt(s.next());
        int b = Integer.parseInt(s.next());
        int c = Integer.parseInt(s.next());
        if(a == b || b == c || c == a){
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        String answer = "YES";
        Scanner s = new Scanner(System.in);
        int a = Integer.parseInt(s.next());
        int b = Integer.parseInt(s.next());
        int c = Integer.parseInt(s.next());
        if(a == b || b == c || c == a){
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String args[]) {
        String answer = "YES";
        Scanner s = new Scanner(System.in);
        int a = Integer.parseInt(s.next());
        int b = Integer.parseInt(s.next());
        int c = Integer.parseInt(s.next());
        if(a == b || b == c || c == a){
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        String answer = "YES";
        Scanner s = new Scanner(System.in);
        int a = Integer.parseInt(s.next());
        int b = Integer.parseInt(s.next());
        int c = Integer.parseInt(s.next());
        if(a == b || b == c || c == a){
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } String answer = "YES"; answer "YES" Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = Integer.parseInt(s.next()); a Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s int b = Integer.parseInt(s.next()); b Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s int c = Integer.parseInt(s.next()); c Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s if(a == b || b == c || c == a){
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } a == b || b == c || c == a a == b || b == c || c == a a == b a b b == c b c c == a c a {
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        } if( a == b && b == c ){
                System.out.println("No");
                return;
            } a == b && b == c a == b a b b == c b c {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; 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 public class Main {
    public static void main(String args[]) {
        String answer = "YES";
        Scanner s = new Scanner(System.in);
        int a = Integer.parseInt(s.next());
        int b = Integer.parseInt(s.next());
        int c = Integer.parseInt(s.next());
        if(a == b || b == c || c == a){
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String args[]) {
        String answer = "YES";
        Scanner s = new Scanner(System.in);
        int a = Integer.parseInt(s.next());
        int b = Integer.parseInt(s.next());
        int c = Integer.parseInt(s.next());
        if(a == b || b == c || c == a){
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
        String answer = "YES";
        Scanner s = new Scanner(System.in);
        int a = Integer.parseInt(s.next());
        int b = Integer.parseInt(s.next());
        int c = Integer.parseInt(s.next());
        if(a == b || b == c || c == a){
            if( a == b && b == c ){
                System.out.println("No");
                return;
            }
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}