x = set(map(int, input().split()))

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

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