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