import Foundation

extension String {
    @inlinable
    func wordsMap<T>(_ f: (Substring) -> T?) -> [T] {
        return self.split(separator: " ").compactMap(f)
    }
}
 
@inlinable
func 📜<T>(_ f: (Substring) -> T?) -> [T] {
    return readLine()!.wordsMap(f)
}

prefix operator ✂
extension Array {
    typealias E = Array.Element
    static prefix func ✂ (a: Array) -> (E, E) { return (a[0], a[1]) }
    static prefix func ✂ (a: Array) -> (E, E, E) { return (a[0], a[1], a[2]) }
    static prefix func ✂ (a: Array) -> (E, E, E, E) { return (a[0], a[1], a[2], a[3]) }
    static prefix func ✂ (a: Array) -> (E, E, E, E, E) { return (a[0], a[1], a[2], a[3], a[4]) }
}

// ✂📜

func main() {
    let (a, b, c) = ✂📜 { Int($0)! }
    if a == b && b != c || a == c && a != b || b == c && a != c {
        print("Yes")
    } else {
        print("No")
    }
}

main()

