import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int[] numArray = new int[10];
        String str = "No";
        Map<Integer,Integer> numMap = new HashMap<>();
        while(sc.hasNext()){
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        }
        for(int i=1;i<10;i++){
            if(numArray[i] == 2)str = "Yes";
        }
        System.out.println(str);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int[] numArray = new int[10];
        String str = "No";
        Map<Integer,Integer> numMap = new HashMap<>();
        while(sc.hasNext()){
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        }
        for(int i=1;i<10;i++){
            if(numArray[i] == 2)str = "Yes";
        }
        System.out.println(str);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int[] numArray = new int[10];
        String str = "No";
        Map<Integer,Integer> numMap = new HashMap<>();
        while(sc.hasNext()){
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        }
        for(int i=1;i<10;i++){
            if(numArray[i] == 2)str = "Yes";
        }
        System.out.println(str);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int[] numArray = new int[10];
        String str = "No";
        Map<Integer,Integer> numMap = new HashMap<>();
        while(sc.hasNext()){
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        }
        for(int i=1;i<10;i++){
            if(numArray[i] == 2)str = "Yes";
        }
        System.out.println(str);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] numArray = new int[10]; numArray new int[10] 10 String str = "No"; str "No" Map<Integer,Integer> numMap = new HashMap<>(); numMap new HashMap<>() while(sc.hasNext()){
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        } sc.hasNext() sc.hasNext sc {
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        } int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc numArray[N]++ numArray[N] numArray N for(int i=1;i<10;i++){
            if(numArray[i] == 2)str = "Yes";
        } int i=1; int i=1; i 1 i<10 i 10 i++ i++ i {
            if(numArray[i] == 2)str = "Yes";
        } {
            if(numArray[i] == 2)str = "Yes";
        } if(numArray[i] == 2)str = "Yes"; numArray[i] == 2 numArray[i] numArray i 2 str = "Yes" str "Yes" 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);
        
        int[] numArray = new int[10];
        String str = "No";
        Map<Integer,Integer> numMap = new HashMap<>();
        while(sc.hasNext()){
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        }
        for(int i=1;i<10;i++){
            if(numArray[i] == 2)str = "Yes";
        }
        System.out.println(str);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int[] numArray = new int[10];
        String str = "No";
        Map<Integer,Integer> numMap = new HashMap<>();
        while(sc.hasNext()){
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        }
        for(int i=1;i<10;i++){
            if(numArray[i] == 2)str = "Yes";
        }
        System.out.println(str);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int[] numArray = new int[10];
        String str = "No";
        Map<Integer,Integer> numMap = new HashMap<>();
        while(sc.hasNext()){
            int N = Integer.parseInt(sc.next());
            numArray[N]++;
        }
        for(int i=1;i<10;i++){
            if(numArray[i] == 2)str = "Yes";
        }
        System.out.println(str);
    }
}
