import java.util.*

fun main(args: Array<String>){
    val sc = Scanner(System.`in`)

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

    var bool = false
    if(a == b && a != c)bool = true
    if(a == c && a != b)bool = true
    if(b == c && b != a)bool = true

    if(bool){
        println("Yes")
    }else{
        println("No")
    }

    sc.close()
}