import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main {
  public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    String sNum1 = sc.next();
    String sNum2 = sc.next();
    String sNum3 = sc.next();
    String sReuslt;
    int iResult = 0;
    if (sNum1.equals(sNum2)) {
      iResult++;
    }
    if (sNum2.equals(sNum3)) {
      iResult++;
    }
    if (sNum1.equals(sNum3)) {
      iResult++;
    }
    if (1 == iResult) {
      sReuslt = "Yes";
    } else {
      sReuslt = "No";
    }
    System.out.print(sReuslt);
  }
} import java.util.LinkedList; LinkedList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
  public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    String sNum1 = sc.next();
    String sNum2 = sc.next();
    String sNum3 = sc.next();
    String sReuslt;
    int iResult = 0;
    if (sNum1.equals(sNum2)) {
      iResult++;
    }
    if (sNum2.equals(sNum3)) {
      iResult++;
    }
    if (sNum1.equals(sNum3)) {
      iResult++;
    }
    if (1 == iResult) {
      sReuslt = "Yes";
    } else {
      sReuslt = "No";
    }
    System.out.print(sReuslt);
  }
} Main public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    String sNum1 = sc.next();
    String sNum2 = sc.next();
    String sNum3 = sc.next();
    String sReuslt;
    int iResult = 0;
    if (sNum1.equals(sNum2)) {
      iResult++;
    }
    if (sNum2.equals(sNum3)) {
      iResult++;
    }
    if (sNum1.equals(sNum3)) {
      iResult++;
    }
    if (1 == iResult) {
      sReuslt = "Yes";
    } else {
      sReuslt = "No";
    }
    System.out.print(sReuslt);
  } main {

    Scanner sc = new Scanner(System.in);
    String sNum1 = sc.next();
    String sNum2 = sc.next();
    String sNum3 = sc.next();
    String sReuslt;
    int iResult = 0;
    if (sNum1.equals(sNum2)) {
      iResult++;
    }
    if (sNum2.equals(sNum3)) {
      iResult++;
    }
    if (sNum1.equals(sNum3)) {
      iResult++;
    }
    if (1 == iResult) {
      sReuslt = "Yes";
    } else {
      sReuslt = "No";
    }
    System.out.print(sReuslt);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String sNum1 = sc.next(); sNum1 sc.next() sc.next sc String sNum2 = sc.next(); sNum2 sc.next() sc.next sc String sNum3 = sc.next(); sNum3 sc.next() sc.next sc String sReuslt; sReuslt int iResult = 0; iResult 0 if (sNum1.equals(sNum2)) {
      iResult++;
    } sNum1.equals(sNum2) sNum1.equals sNum1 sNum2 {
      iResult++;
    } iResult++ iResult if (sNum2.equals(sNum3)) {
      iResult++;
    } sNum2.equals(sNum3) sNum2.equals sNum2 sNum3 {
      iResult++;
    } iResult++ iResult if (sNum1.equals(sNum3)) {
      iResult++;
    } sNum1.equals(sNum3) sNum1.equals sNum1 sNum3 {
      iResult++;
    } iResult++ iResult if (1 == iResult) {
      sReuslt = "Yes";
    } else {
      sReuslt = "No";
    } 1 == iResult 1 iResult {
      sReuslt = "Yes";
    } sReuslt = "Yes" sReuslt "Yes" {
      sReuslt = "No";
    } sReuslt = "No" sReuslt "No" System.out.print(sReuslt) System.out.print System.out System System.out sReuslt final String[] args args public class Main {
  public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    String sNum1 = sc.next();
    String sNum2 = sc.next();
    String sNum3 = sc.next();
    String sReuslt;
    int iResult = 0;
    if (sNum1.equals(sNum2)) {
      iResult++;
    }
    if (sNum2.equals(sNum3)) {
      iResult++;
    }
    if (sNum1.equals(sNum3)) {
      iResult++;
    }
    if (1 == iResult) {
      sReuslt = "Yes";
    } else {
      sReuslt = "No";
    }
    System.out.print(sReuslt);
  }
} public class Main {
  public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    String sNum1 = sc.next();
    String sNum2 = sc.next();
    String sNum3 = sc.next();
    String sReuslt;
    int iResult = 0;
    if (sNum1.equals(sNum2)) {
      iResult++;
    }
    if (sNum2.equals(sNum3)) {
      iResult++;
    }
    if (sNum1.equals(sNum3)) {
      iResult++;
    }
    if (1 == iResult) {
      sReuslt = "Yes";
    } else {
      sReuslt = "No";
    }
    System.out.print(sReuslt);
  }
} Main
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main {
  public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    String sNum1 = sc.next();
    String sNum2 = sc.next();
    String sNum3 = sc.next();
    String sReuslt;
    int iResult = 0;
    if (sNum1.equals(sNum2)) {
      iResult++;
    }
    if (sNum2.equals(sNum3)) {
      iResult++;
    }
    if (sNum1.equals(sNum3)) {
      iResult++;
    }
    if (1 == iResult) {
      sReuslt = "Yes";
    } else {
      sReuslt = "No";
    }
    System.out.print(sReuslt);
  }
}
