import java.util.*;

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

        int n = sc.nextInt();
        int k = sc.nextInt();
        int c = sc.nextInt();

        if (n == k) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        }
        System.out.println("No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int k = sc.nextInt();
        int c = sc.nextInt();

        if (n == k) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int k = sc.nextInt();
        int c = sc.nextInt();

        if (n == k) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        }
        System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int k = sc.nextInt();
        int c = sc.nextInt();

        if (n == k) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        }
        System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc if (n == k) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        } n == k n k {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } if (n != c) {
                System.out.println("Yes");
                return;
            } n != c n c {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        } k == c k c {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } if (n != c) {
                System.out.println("Yes");
                return;
            } n != c n c {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        } n == c n c {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } if (k != c) {
                System.out.println("Yes");
                return;
            } k != c k c {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; {

        } 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) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int k = sc.nextInt();
        int c = sc.nextInt();

        if (n == k) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int k = sc.nextInt();
        int c = sc.nextInt();

        if (n == k) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        }
        System.out.println("No");
    }
} Main
import java.util.*;

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

        int n = sc.nextInt();
        int k = sc.nextInt();
        int c = sc.nextInt();

        if (n == k) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (k == c) {
            if (n != c) {
                System.out.println("Yes");
                return;
            }
        } else if (n == c) {
            if (k != c) {
                System.out.println("Yes");
                return;
            }

        } else {

        }
        System.out.println("No");
    }
}
