import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sn = new Scanner(System.in);
    
    int A = sn.nextInt();
    int B = sn.nextInt();
    int C = sn.nextInt();
    
    if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sn = new Scanner(System.in);
    
    int A = sn.nextInt();
    int B = sn.nextInt();
    int C = sn.nextInt();
    
    if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
} Main public static void main(String[] args){
    Scanner sn = new Scanner(System.in);
    
    int A = sn.nextInt();
    int B = sn.nextInt();
    int C = sn.nextInt();
    
    if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  } main {
    Scanner sn = new Scanner(System.in);
    
    int A = sn.nextInt();
    int B = sn.nextInt();
    int C = sn.nextInt();
    
    if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) int A = sn.nextInt(); A sn.nextInt() sn.nextInt sn int B = sn.nextInt(); B sn.nextInt() sn.nextInt sn int C = sn.nextInt(); C sn.nextInt() sn.nextInt sn if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
    } ( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A ) ( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A ) ( A == B && A != C ) A == B A B A != C A C ( A == C && A != B ) A == C A C A != B A B ( B == C && B != A ) B == C B C B != A B A {
      System.out.print("Yes");
    } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
      System.out.print("No");
    } System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sn = new Scanner(System.in);
    
    int A = sn.nextInt();
    int B = sn.nextInt();
    int C = sn.nextInt();
    
    if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sn = new Scanner(System.in);
    
    int A = sn.nextInt();
    int B = sn.nextInt();
    int C = sn.nextInt();
    
    if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sn = new Scanner(System.in);
    
    int A = sn.nextInt();
    int B = sn.nextInt();
    int C = sn.nextInt();
    
    if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
}
