import java.io.*;
import java.util.*;

class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");
        
        int A = Integer.parseInt(input[0]);
        int B = Integer.parseInt(input[1]);
        int C = Integer.parseInt(input[2]);

        int result = 0;

        if(A == B){
          result += 1;
        }

        if(A == C){
          result += 1;
        }
        
        if(B == C){
          result += 1;
        }

        if(result == 1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
      }
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");
        
        int A = Integer.parseInt(input[0]);
        int B = Integer.parseInt(input[1]);
        int C = Integer.parseInt(input[2]);

        int result = 0;

        if(A == B){
          result += 1;
        }

        if(A == C){
          result += 1;
        }
        
        if(B == C){
          result += 1;
        }

        if(result == 1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
      }
    }
} Main public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");
        
        int A = Integer.parseInt(input[0]);
        int B = Integer.parseInt(input[1]);
        int C = Integer.parseInt(input[2]);

        int result = 0;

        if(A == B){
          result += 1;
        }

        if(A == C){
          result += 1;
        }
        
        if(B == C){
          result += 1;
        }

        if(result == 1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
      }
    } main {
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");
        
        int A = Integer.parseInt(input[0]);
        int B = Integer.parseInt(input[1]);
        int C = Integer.parseInt(input[2]);

        int result = 0;

        if(A == B){
          result += 1;
        }

        if(A == C){
          result += 1;
        }
        
        if(B == C){
          result += 1;
        }

        if(result == 1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
      }
    } try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");
        
        int A = Integer.parseInt(input[0]);
        int B = Integer.parseInt(input[1]);
        int C = Integer.parseInt(input[2]);

        int result = 0;

        if(A == B){
          result += 1;
        }

        if(A == C){
          result += 1;
        }
        
        if(B == C){
          result += 1;
        }

        if(result == 1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
      } {
        String[] input = br.readLine().split(" ");
        
        int A = Integer.parseInt(input[0]);
        int B = Integer.parseInt(input[1]);
        int C = Integer.parseInt(input[2]);

        int result = 0;

        if(A == B){
          result += 1;
        }

        if(A == C){
          result += 1;
        }
        
        if(B == C){
          result += 1;
        }

        if(result == 1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
      } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String[] input = br.readLine().split(" "); input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int A = Integer.parseInt(input[0]); A Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int B = Integer.parseInt(input[1]); B Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 int C = Integer.parseInt(input[2]); C Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 2 int result = 0; result 0 if(A == B){
          result += 1;
        } A == B A B {
          result += 1;
        } result += 1 result 1 if(A == C){
          result += 1;
        } A == C A C {
          result += 1;
        } result += 1 result 1 if(B == C){
          result += 1;
        } B == C B C {
          result += 1;
        } result += 1 result 1 if(result == 1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        } result == 1 result 1 {
          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
import java.io.*;
import java.util.*;

class Main{
    public static void main(String args[])throws IOException{
      try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
        String[] input = br.readLine().split(" ");
        
        int A = Integer.parseInt(input[0]);
        int B = Integer.parseInt(input[1]);
        int C = Integer.parseInt(input[2]);

        int result = 0;

        if(A == B){
          result += 1;
        }

        if(A == C){
          result += 1;
        }
        
        if(B == C){
          result += 1;
        }

        if(result == 1){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
      }
    }
}