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

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        HashSet hs = new HashSet<Integer>();
        String str = "Yes";
        for(int i = 0; i < 3; i++){
            hs.add(sc.nextInt());    
        }
        if(hs.size() != 2){
            str = "No";
        }
        System.out.println(str);
    }
} import java.util.Scanner; Scanner java.util import java.util.HashSet; HashSet java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        HashSet hs = new HashSet<Integer>();
        String str = "Yes";
        for(int i = 0; i < 3; i++){
            hs.add(sc.nextInt());    
        }
        if(hs.size() != 2){
            str = "No";
        }
        System.out.println(str);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        HashSet hs = new HashSet<Integer>();
        String str = "Yes";
        for(int i = 0; i < 3; i++){
            hs.add(sc.nextInt());    
        }
        if(hs.size() != 2){
            str = "No";
        }
        System.out.println(str);
    } main {
        Scanner sc = new Scanner(System.in);
        HashSet hs = new HashSet<Integer>();
        String str = "Yes";
        for(int i = 0; i < 3; i++){
            hs.add(sc.nextInt());    
        }
        if(hs.size() != 2){
            str = "No";
        }
        System.out.println(str);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) HashSet hs = new HashSet<Integer>(); hs new HashSet<Integer>() String str = "Yes"; str "Yes" for(int i = 0; i < 3; i++){
            hs.add(sc.nextInt());    
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            hs.add(sc.nextInt());    
        } {
            hs.add(sc.nextInt());    
        } hs.add(sc.nextInt()) hs.add hs sc.nextInt() sc.nextInt sc if(hs.size() != 2){
            str = "No";
        } hs.size() != 2 hs.size() hs.size hs 2 {
            str = "No";
        } str = "No" str "No" System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        HashSet hs = new HashSet<Integer>();
        String str = "Yes";
        for(int i = 0; i < 3; i++){
            hs.add(sc.nextInt());    
        }
        if(hs.size() != 2){
            str = "No";
        }
        System.out.println(str);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        HashSet hs = new HashSet<Integer>();
        String str = "Yes";
        for(int i = 0; i < 3; i++){
            hs.add(sc.nextInt());    
        }
        if(hs.size() != 2){
            str = "No";
        }
        System.out.println(str);
    }
} Main
import java.util.Scanner;
import java.util.HashSet;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        HashSet hs = new HashSet<Integer>();
        String str = "Yes";
        for(int i = 0; i < 3; i++){
            hs.add(sc.nextInt());    
        }
        if(hs.size() != 2){
            str = "No";
        }
        System.out.println(str);
    }
}
