import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        }

        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        }

        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        }

        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        }

        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int array [] = new int[3]; array new int[3] 3 int count = 0 count 0 num; num while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        } count<3 count 3 {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        } num = scanner.nextInt() num scanner.nextInt() scanner.nextInt scanner if(0<num && num <10){
                array[count] = num;
                count++;
            } 0<num && num <10 0<num 0 num num <10 num 10 {
                array[count] = num;
                count++;
            } array[count] = num array[count] array count num count++ count for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        } int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        } {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        } for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            } int j = i+1; int j = i+1; j i+1 i 1 j<3 j 3 j++ j++ j {
                if(array[i] == array[j]){
                    count = count-1;
                }
            } {
                if(array[i] == array[j]){
                    count = count-1;
                }
            } if(array[i] == array[j]){
                    count = count-1;
                } array[i] == array[j] array[i] array i array[j] array j {
                    count = count-1;
                } count = count-1 count count-1 count 1 if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        } count == 2 count 2 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } 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 scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        }

        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        }

        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int array [] = new int[3];
        int count = 0, num;
        while(count<3)
        {
            num = scanner.nextInt();
            if(0<num && num <10){
                array[count] = num;
                count++;
            }

        }

        for (int i = 0; i<3; i++) {
            for(int j = i+1; j<3; j++){
                if(array[i] == array[j]){
                    count = count-1;
                }
            }
        }
        if(count == 2){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}

