import java.io.{BufferedReader, InputStreamReader}

object Main {
  def main(args: Array[String]): Unit = {
    val in = new BufferedReader(new InputStreamReader(System.in))
    val as = in.readLine().split("\\s+").map(_.toInt)

    System.out.println(
      if(as.toSet.size == 2) {
        "Yes"
      } else {
        "No"
      }
    )
  }
}
