object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val a = sc.nextInt()
    val b = sc.nextInt()
    val c = sc.nextInt()

    val ans =
      if (a == b && a != c ||
          a == c && a != b ||
          b == c && a != b) {
        "Yes"
      } else {
        "No"
      }

    println(ans)
  }
}
