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

/**
 * Created by Ayushi on 16 Feb 2020.
 * Problem:
 * Round:
 */

public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        int c = Integer.parseInt(st.nextToken());
        br.close();

        if (a == b && a != c) System.out.println("Yes");
        else if (a == c && a != b) System.out.println("Yes");
        else if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No");
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        int c = Integer.parseInt(st.nextToken());
        br.close();

        if (a == b && a != c) System.out.println("Yes");
        else if (a == c && a != b) System.out.println("Yes");
        else if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No");
    }
} Main public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        int c = Integer.parseInt(st.nextToken());
        br.close();

        if (a == b && a != c) System.out.println("Yes");
        else if (a == c && a != b) System.out.println("Yes");
        else if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No");
    } main {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        int c = Integer.parseInt(st.nextToken());
        br.close();

        if (a == b && a != c) System.out.println("Yes");
        else if (a == c && a != b) System.out.println("Yes");
        else if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No");
    } StringTokenizer st; st BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String temp = br.readLine(); temp br.readLine() br.readLine br st = new StringTokenizer(temp, " ") st new StringTokenizer(temp, " ") int a = Integer.parseInt(st.nextToken()); a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int b = Integer.parseInt(st.nextToken()); b Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int c = Integer.parseInt(st.nextToken()); c Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st br.close() br.close br if (a == b && a != c) System.out.println("Yes");
        else if (a == c && a != b) System.out.println("Yes");
        else if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No"); a == b && a != c a == b a b a != c a c System.out.println("Yes") System.out.println System.out System System.out "Yes" if (a == c && a != b) System.out.println("Yes");
        else if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No"); a == c && a != b a == c a c a != b a b System.out.println("Yes") System.out.println System.out System System.out "Yes" if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No"); b == c && b != a b == c b c b != a b a System.out.println("Yes") System.out.println System.out System System.out "Yes" 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) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        int c = Integer.parseInt(st.nextToken());
        br.close();

        if (a == b && a != c) System.out.println("Yes");
        else if (a == c && a != b) System.out.println("Yes");
        else if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        int c = Integer.parseInt(st.nextToken());
        br.close();

        if (a == b && a != c) System.out.println("Yes");
        else if (a == c && a != b) System.out.println("Yes");
        else if (b == c && b != a) System.out.println("Yes");
        else System.out.println("No");
    }
} Main
import java.io.*;
import java.util.*;

/**
 * Created by Ayushi on 16 Feb 2020.
 * Problem:
 * Round:
 */

public class Main {
    public static void main(String[] args) throws IOException {
        StringTokenizer st;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String temp = br.readLine();
        st = new StringTokenizer(temp, " ");
        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        int c = Integer.parseInt(st.nextToken());
        br.close();

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