import Foundation
 
let array = readLine()!.componentsSeparatedByString(" ").map { Int($0)! }

var answer = "No"
if array[0] == array[1] || array[0] == array[2] {
    if array[1] != array[2] {
    	answer = "Yes"
    }
}

if array[1] == array[2] {
    if array[0] != array[1] {
    	answer = "Yes"  
    }
}
print(answer)