X = list(map(int,input().split()))
for i in [0,1]:
    if X.count(X[i]) == 2:
        print('Yes')
        exit()

print('No') X = list(map(int,input().split())) X list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split for i in [0,1]:
    if X.count(X[i]) == 2:
        print('Yes')
        exit() i [0,1] 0 1 if X.count(X[i]) == 2:
        print('Yes')
        exit() X.count(X[i]) == 2 X.count(X[i]) X.count X count X[i] X i 2 print('Yes') print 'Yes' exit() exit print('No') print 'No' X = list(map(int,input().split())) list(map(int,input().split())) X
X = list(map(int,input().split()))
for i in [0,1]:
    if X.count(X[i]) == 2:
        print('Yes')
        exit()

print('No')
