import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        }
    }

    private static boolean isMiserable(int a, int b, int c) {
        return a == b && b != c;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        }
    }

    private static boolean isMiserable(int a, int b, int c) {
        return a == b && b != c;
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        }
    } main {
        try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        }
    } try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        } {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No") System.out.println System.out System System.out isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No" isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) isMiserable(A, B, C) isMiserable A B C isMiserable(B, C, A) isMiserable B C A isMiserable(C, A, B) isMiserable C A B "Yes" "No" String[] args args private static boolean isMiserable(int a, int b, int c) {
        return a == b && b != c;
    } isMiserable {
        return a == b && b != c;
    } return a == b && b != c; a == b && b != c a == b a b b != c b c int a a int b b int c c public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        }
    }

    private static boolean isMiserable(int a, int b, int c) {
        return a == b && b != c;
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        }
    }

    private static boolean isMiserable(int a, int b, int c) {
        return a == b && b != c;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println(isMiserable(A, B, C) || isMiserable(B, C, A) || isMiserable(C, A, B) ? "Yes" : "No");
        }
    }

    private static boolean isMiserable(int a, int b, int c) {
        return a == b && b != c;
    }
}
