a = list(map(int, input().split(' ')))
a = set(a)
l = len(a)
if l == 2:
    print('Yes')
else:
    print('No')

            
 a = list(map(int, input().split(' '))) a list(map(int, input().split(' '))) list map(int, input().split(' ')) map int input().split(' ') ().split () input split ' ' a = set(a) a set(a) set a l = len(a) l len(a) len a if l == 2:
    print('Yes')
else:
    print('No')

             l == 2 l 2 print('Yes') print 'Yes' print('No') print 'No' a = set(a) set(a) a l = len(a) len(a) l a = list(map(int, input().split(' '))) list(map(int, input().split(' '))) a
a = list(map(int, input().split(' ')))
a = set(a)
l = len(a)
if l == 2:
    print('Yes')
else:
    print('No')

            

