object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val one, two, three = sc.nextInt
  var ans:String = "No"
  
  if (one==two && two==three && three==one) {
    ans = "No"
  } else if (one!=two && two!=three && three!=one) {
    ans = "No"
  } else {
    ans = "Yes"
  }
  println(ans)
}
