import java.util.Scanner;

public class Main {

    public static void main(String []args){
        Scanner in = new Scanner(System.in);

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


        if(a==b && b==c)
        {
            System.out.println("No");
        }
        else{
            if(a==b || b==c || a==c)
            {
                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){
        Scanner in = new Scanner(System.in);

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


        if(a==b && b==c)
        {
            System.out.println("No");
        }
        else{
            if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            }
        }

    }

} Main public static void main(String []args){
        Scanner in = new Scanner(System.in);

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


        if(a==b && b==c)
        {
            System.out.println("No");
        }
        else{
            if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            }
        }

    } main {
        Scanner in = new Scanner(System.in);

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


        if(a==b && b==c)
        {
            System.out.println("No");
        }
        else{
            if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            }
        }

    } Scanner in = new Scanner(System.in); in new Scanner(System.in) long a = in.nextLong(); a in.nextLong() in.nextLong in long b = in.nextLong(); b in.nextLong() in.nextLong in long c = in.nextLong(); c in.nextLong() in.nextLong in if(a==b && b==c)
        {
            System.out.println("No");
        }
        else{
            if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            }
        } a==b && b==c a==b a b b==c b c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            }
        } if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            } a==b || b==c || a==c a==b || b==c || a==c a==b a b b==c b c a==c a c {
                System.out.println("Yes");
            } 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){
        Scanner in = new Scanner(System.in);

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


        if(a==b && b==c)
        {
            System.out.println("No");
        }
        else{
            if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            }
        }

    }

} public class Main {

    public static void main(String []args){
        Scanner in = new Scanner(System.in);

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


        if(a==b && b==c)
        {
            System.out.println("No");
        }
        else{
            if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            }
        }

    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String []args){
        Scanner in = new Scanner(System.in);

        long a = in.nextLong();
        long b = in.nextLong();
        long c = in.nextLong();


        if(a==b && b==c)
        {
            System.out.println("No");
        }
        else{
            if(a==b || b==c || a==c)
            {
                System.out.println("Yes");
            }
            else
            {
                System.out.println("No");
            }
        }

    }

}
