import java.util.Scanner

object Main {

  def main(args: Array[String]) {
    val sc = new Scanner(System.in)

    val a = sc.nextInt
    val b = sc.nextInt
    val c = sc.nextInt

    if (Set(a, b, c).toList.length == 2) println("Yes") else println("No")
  }
}