


import scala.annotation.tailrec
import scala.collection.mutable
import scala.io.StdIn._
object Main extends App {
  val arr = readLine.trim.split(' ').map(_.toInt)
  println{
    if (arr.distinct.size == 2) "Yes" else "No"
  }
}
