import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;

public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
    }
    void solve() throws IOException {
        Set<Integer> set = new HashSet<>();
        for(int i=0;i<3;i++) set.add(sc.nextInt());
        String ans = set.size()==2?"Yes":"No";
        System.out.println(ans);
    }
}
 import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io import java.util.*; util.* java public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
    }
    void solve() throws IOException {
        Set<Integer> set = new HashSet<>();
        for(int i=0;i<3;i++) set.add(sc.nextInt());
        String ans = set.size()==2?"Yes":"No";
        System.out.println(ans);
    }
} Main static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
    } main {
        Main main = new Main();
        main.solve();
    } Main main = new Main(); main new Main() main.solve() main.solve main String[] args args void solve() throws IOException {
        Set<Integer> set = new HashSet<>();
        for(int i=0;i<3;i++) set.add(sc.nextInt());
        String ans = set.size()==2?"Yes":"No";
        System.out.println(ans);
    } solve {
        Set<Integer> set = new HashSet<>();
        for(int i=0;i<3;i++) set.add(sc.nextInt());
        String ans = set.size()==2?"Yes":"No";
        System.out.println(ans);
    } Set<Integer> set = new HashSet<>(); set new HashSet<>() for(int i=0;i<3;i++) set.add(sc.nextInt()); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i set.add(sc.nextInt()); set.add(sc.nextInt()) set.add set sc.nextInt() sc.nextInt sc String ans = set.size()==2?"Yes":"No"; ans set.size()==2?"Yes":"No" set.size()==2 set.size() set.size set 2 "Yes" "No" System.out.println(ans) System.out.println System.out System System.out ans public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
    }
    void solve() throws IOException {
        Set<Integer> set = new HashSet<>();
        for(int i=0;i<3;i++) set.add(sc.nextInt());
        String ans = set.size()==2?"Yes":"No";
        System.out.println(ans);
    }
} public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
    }
    void solve() throws IOException {
        Set<Integer> set = new HashSet<>();
        for(int i=0;i<3;i++) set.add(sc.nextInt());
        String ans = set.size()==2?"Yes":"No";
        System.out.println(ans);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;

public class Main {
    static PrintWriter out = new PrintWriter(System.out);
    static Scanner sc = new Scanner(System.in);
    static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    public static void main(String[] args) throws IOException {
        Main main = new Main();
        main.solve();
    }
    void solve() throws IOException {
        Set<Integer> set = new HashSet<>();
        for(int i=0;i<3;i++) set.add(sc.nextInt());
        String ans = set.size()==2?"Yes":"No";
        System.out.println(ans);
    }
}

