import scala.io.StdIn._
object Main extends App {
  val Array(a, b, c) = readLine.split(" ")
  if (a == b && b == c) {
    println("No")
  } else if (a != b && b != c && a != c) {
    println("No")
  } else {
    println("Yes")
  }
}
