import java.util.*

fun main(args: Array<String>) {
    val scn = Scanner(System.`in`)
    val A = scn.nextInt()
    val B = scn.nextInt()
    val C = scn.nextInt()


    if(A==B && A!=C){
        println("Yes")
    }else if(A==C && A!=B){
        println("Yes")
    }else if(B==C && B!=A){
        println("Yes")
    }else{
        println("No")
    }

}

