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