import java.io.BufferedReader
import java.io.InputStreamReader

fun main(a: Array<String>) {
    val reader = BufferedReader(InputStreamReader(System.`in`))
    val args = reader.readLine().split(" ")
    val list = (0..2).map { args[it] }
    list.forEachIndexed { index, s ->
        if (list.count { it == list[index] } == 2) {
            println("Yes")
            return
        }
    }
    println("No")
}