
def main():
    n = set(map(int, input().split()))
    if len(n) == 2:
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    main() def main():
    n = set(map(int, input().split()))
    if len(n) == 2:
        print('Yes')
    else:
        print('No') main n = set(map(int, input().split())) n set(map(int, input().split())) set map(int, input().split()) map int input().split() ().split () input split if len(n) == 2:
        print('Yes')
    else:
        print('No') len(n) == 2 len(n) len n 2 print('Yes') print 'Yes' print('No') print 'No' if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    n = set(map(int, input().split()))
    if len(n) == 2:
        print('Yes')
    else:
        print('No') def main():
    n = set(map(int, input().split()))
    if len(n) == 2:
        print('Yes')
    else:
        print('No') main

def main():
    n = set(map(int, input().split()))
    if len(n) == 2:
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    main()
