import java.util.Scanner;
public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);

        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();

        if(A==B && B==C)System.out.printf("No");
        else if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No");
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);

        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();

        if(A==B && B==C)System.out.printf("No");
        else if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No");
    }
} Main public static void main(String args[]){
        Scanner scan = new Scanner(System.in);

        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();

        if(A==B && B==C)System.out.printf("No");
        else if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No");
    } main {
        Scanner scan = new Scanner(System.in);

        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();

        if(A==B && B==C)System.out.printf("No");
        else if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int C = scan.nextInt(); C scan.nextInt() scan.nextInt scan if(A==B && B==C)System.out.printf("No");
        else if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No"); A==B && B==C A==B A B B==C B C System.out.printf("No") System.out.printf System.out System System.out "No" if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No"); A!=B && B==C A!=B A B B==C B C System.out.printf("Yes") System.out.printf System.out System System.out "Yes" if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No"); A==B && B!=C A==B A B B!=C B C System.out.printf("Yes") System.out.printf System.out System System.out "Yes" if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No"); A==C && A!=B A==C A C A!=B A B System.out.printf("Yes") System.out.printf System.out System System.out "Yes" System.out.printf("No") System.out.printf System.out System System.out "No" String args[] args public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);

        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();

        if(A==B && B==C)System.out.printf("No");
        else if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No");
    }
} public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);

        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();

        if(A==B && B==C)System.out.printf("No");
        else if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No");
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);

        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();

        if(A==B && B==C)System.out.printf("No");
        else if(A!=B && B==C)System.out.printf("Yes");
             else if(A==B && B!=C)System.out.printf("Yes");
                  else if(A==C && A!=B)System.out.printf("Yes");
                       else System.out.printf("No");
    }
}