object Main extends App {
  val abcInput =  scala.io.StdIn.readLine()
  val abcArray = abcInput.split(" ").map(_.toInt).toSeq
  val distinctAbc = abcArray.distinct
  if (distinctAbc.length == 2) {
    println("Yes")
  } else {
    println("No")
  }

}