from collections import defaultdict

def main():
    N = list(map(int, input().split()))
    dd = defaultdict(int)

    for n in range(len(N)):
        dd[N[n]] += 1

    print('Yes') if len(dd) == 2 else print('No')

if __name__ == '__main__':
    main() from collections import defaultdict def main():
    N = list(map(int, input().split()))
    dd = defaultdict(int)

    for n in range(len(N)):
        dd[N[n]] += 1

    print('Yes') if len(dd) == 2 else print('No') main N = list(map(int, input().split())) N list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split dd = defaultdict(int) dd defaultdict(int) defaultdict int for n in range(len(N)):
        dd[N[n]] += 1

     n range(len(N)) range len(N) len N dd[N[n]] += 1 dd[N[n]] dd N[n] N n 1 print('Yes') if len(dd) == 2 else print('No') len(dd) == 2 len(dd) len dd 2 print('Yes') print 'Yes' print('No') print 'No' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    N = list(map(int, input().split()))
    dd = defaultdict(int)

    for n in range(len(N)):
        dd[N[n]] += 1

    print('Yes') if len(dd) == 2 else print('No') def main():
    N = list(map(int, input().split()))
    dd = defaultdict(int)

    for n in range(len(N)):
        dd[N[n]] += 1

    print('Yes') if len(dd) == 2 else print('No') main
from collections import defaultdict

def main():
    N = list(map(int, input().split()))
    dd = defaultdict(int)

    for n in range(len(N)):
        dd[N[n]] += 1

    print('Yes') if len(dd) == 2 else print('No')

if __name__ == '__main__':
    main()
