
import java.util.*;
import java.io.*;

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        int C = in.nextInt();

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





    }


 }










 import java.util.*; util.* java import java.io.*; io.* java import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        int C = in.nextInt();

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





    }


 } Main public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        int C = in.nextInt();

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





    } main {

        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        int C = in.nextInt();

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





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

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        int C = in.nextInt();

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





    }


 } public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        int C = in.nextInt();

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





    }


 } Main

import java.util.*;
import java.io.*;

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        int C = in.nextInt();

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





    }


 }











