def poor():
    # 入力
    num_set = set(map(int, input().split()))
    # 処理
    if len(num_set) == 2:
        return 'Yes'
    else:
        return 'No'

result = poor()
print(result) def poor():
    # 入力
    num_set = set(map(int, input().split()))
    # 処理
    if len(num_set) == 2:
        return 'Yes'
    else:
        return 'No' poor num_set = set(map(int, input().split())) num_set set(map(int, input().split())) set map(int, input().split()) map int input().split() ().split () input split if len(num_set) == 2:
        return 'Yes'
    else:
        return 'No' len(num_set) == 2 len(num_set) len num_set 2 return 'Yes' 'Yes' return 'No' 'No' result = poor() result poor() poor print(result) print result result = poor() poor() result def poor():
    # 入力
    num_set = set(map(int, input().split()))
    # 処理
    if len(num_set) == 2:
        return 'Yes'
    else:
        return 'No' def poor():
    # 入力
    num_set = set(map(int, input().split()))
    # 処理
    if len(num_set) == 2:
        return 'Yes'
    else:
        return 'No' poor
def poor():
    # 入力
    num_set = set(map(int, input().split()))
    # 処理
    if len(num_set) == 2:
        return 'Yes'
    else:
        return 'No'

result = poor()
print(result)