import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int[] tri = new int[3];
        for(int i = 0; i < 3; i++)
            tri[i] = scan.nextInt();

        Arrays.sort(tri);
        if((tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]))
            os.println("Yes");
        else
            os.println("No");
    }
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int[] tri = new int[3];
        for(int i = 0; i < 3; i++)
            tri[i] = scan.nextInt();

        Arrays.sort(tri);
        if((tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]))
            os.println("Yes");
        else
            os.println("No");
    }
} Main public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    } main {
        solve(System.in, System.out);
    } solve(System.in, System.out) solve System.in System System.in System.out System System.out String[] args args static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int[] tri = new int[3];
        for(int i = 0; i < 3; i++)
            tri[i] = scan.nextInt();

        Arrays.sort(tri);
        if((tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]))
            os.println("Yes");
        else
            os.println("No");
    } solve {
        // Your code here!
        Scanner scan = new Scanner(is);
        int[] tri = new int[3];
        for(int i = 0; i < 3; i++)
            tri[i] = scan.nextInt();

        Arrays.sort(tri);
        if((tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]))
            os.println("Yes");
        else
            os.println("No");
    } Scanner scan = new Scanner(is); scan new Scanner(is) int[] tri = new int[3]; tri new int[3] 3 for(int i = 0; i < 3; i++)
            tri[i] = scan.nextInt(); int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i tri[i] = scan.nextInt(); tri[i] = scan.nextInt() tri[i] tri i scan.nextInt() scan.nextInt scan Arrays.sort(tri) Arrays.sort Arrays tri if((tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]))
            os.println("Yes");
        else
            os.println("No"); (tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]) (tri[1] == tri[0] && tri[1] != tri[2]) tri[1] == tri[0] tri[1] tri 1 tri[0] tri 0 tri[1] != tri[2] tri[1] tri 1 tri[2] tri 2 (tri[1] == tri[2] && tri[1] != tri[0]) tri[1] == tri[2] tri[1] tri 1 tri[2] tri 2 tri[1] != tri[0] tri[1] tri 1 tri[0] tri 0 os.println("Yes") os.println os "Yes" os.println("No") os.println os "No" InputStream is is PrintStream os os public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int[] tri = new int[3];
        for(int i = 0; i < 3; i++)
            tri[i] = scan.nextInt();

        Arrays.sort(tri);
        if((tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]))
            os.println("Yes");
        else
            os.println("No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int[] tri = new int[3];
        for(int i = 0; i < 3; i++)
            tri[i] = scan.nextInt();

        Arrays.sort(tri);
        if((tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]))
            os.println("Yes");
        else
            os.println("No");
    }
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int[] tri = new int[3];
        for(int i = 0; i < 3; i++)
            tri[i] = scan.nextInt();

        Arrays.sort(tri);
        if((tri[1] == tri[0] && tri[1] != tri[2]) || (tri[1] == tri[2] && tri[1] != tri[0]))
            os.println("Yes");
        else
            os.println("No");
    }
}