import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

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

        Set<Integer> s = new HashSet<>();
        s.add(sc.nextInt());
        s.add(sc.nextInt());
        s.add(sc.nextInt());

        System.out.println(s.size() == 2 ? "Yes" : "No");
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

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

        Set<Integer> s = new HashSet<>();
        s.add(sc.nextInt());
        s.add(sc.nextInt());
        s.add(sc.nextInt());

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

        Set<Integer> s = new HashSet<>();
        s.add(sc.nextInt());
        s.add(sc.nextInt());
        s.add(sc.nextInt());

        System.out.println(s.size() == 2 ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);

        Set<Integer> s = new HashSet<>();
        s.add(sc.nextInt());
        s.add(sc.nextInt());
        s.add(sc.nextInt());

        System.out.println(s.size() == 2 ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Set<Integer> s = new HashSet<>(); s new HashSet<>() s.add(sc.nextInt()) s.add s sc.nextInt() sc.nextInt sc s.add(sc.nextInt()) s.add s sc.nextInt() sc.nextInt sc s.add(sc.nextInt()) s.add s sc.nextInt() sc.nextInt sc System.out.println(s.size() == 2 ? "Yes" : "No") System.out.println System.out System System.out s.size() == 2 ? "Yes" : "No" s.size() == 2 s.size() s.size s 2 "Yes" "No" String[] args args public class Main {

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

        Set<Integer> s = new HashSet<>();
        s.add(sc.nextInt());
        s.add(sc.nextInt());
        s.add(sc.nextInt());

        System.out.println(s.size() == 2 ? "Yes" : "No");
    }
} public class Main {

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

        Set<Integer> s = new HashSet<>();
        s.add(sc.nextInt());
        s.add(sc.nextInt());
        s.add(sc.nextInt());

        System.out.println(s.size() == 2 ? "Yes" : "No");
    }
} Main
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

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

        Set<Integer> s = new HashSet<>();
        s.add(sc.nextInt());
        s.add(sc.nextInt());
        s.add(sc.nextInt());

        System.out.println(s.size() == 2 ? "Yes" : "No");
    }
}
