import java.util.*;
class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int k=sc.nextInt();
    int m=sc.nextInt();
    System.out.println((n==k||n==m||k==m)?(n==k&&k==m)?"No":"Yes":"No");
  }
} import java.util.*; util.* java class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int k=sc.nextInt();
    int m=sc.nextInt();
    System.out.println((n==k||n==m||k==m)?(n==k&&k==m)?"No":"Yes":"No");
  }
} Main public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int k=sc.nextInt();
    int m=sc.nextInt();
    System.out.println((n==k||n==m||k==m)?(n==k&&k==m)?"No":"Yes":"No");
  } main {
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int k=sc.nextInt();
    int m=sc.nextInt();
    System.out.println((n==k||n==m||k==m)?(n==k&&k==m)?"No":"Yes":"No");
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int k=sc.nextInt(); k sc.nextInt() sc.nextInt sc int m=sc.nextInt(); m sc.nextInt() sc.nextInt sc System.out.println((n==k||n==m||k==m)?(n==k&&k==m)?"No":"Yes":"No") System.out.println System.out System System.out (n==k||n==m||k==m)?(n==k&&k==m)?"No":"Yes":"No" (n==k||n==m||k==m) n==k||n==m||k==m n==k n k n==m n m k==m k m (n==k&&k==m)?"No":"Yes" (n==k&&k==m) n==k n k k==m k m "No" "Yes" "No" String[]args args
import java.util.*;
class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int k=sc.nextInt();
    int m=sc.nextInt();
    System.out.println((n==k||n==m||k==m)?(n==k&&k==m)?"No":"Yes":"No");
  }
}
