A = [0] * 10

B = list(map(int, input().split()))
for i in range(len(B)):
    A[B[i]] += 1

for i in range(len(A)):
    if A[i] == 2:
        print('Yes')
        break
else:
    print('No') A = [0] * 10 A [0] * 10 [0] 0 10 B = list(map(int, input().split())) B list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split for i in range(len(B)):
    A[B[i]] += 1 i range(len(B)) range len(B) len B A[B[i]] += 1 A[B[i]] A B[i] B i 1 for i in range(len(A)):
    if A[i] == 2:
        print('Yes')
        break
else:
    print('No') i range(len(A)) range len(A) len A if A[i] == 2:
        print('Yes')
        break A[i] == 2 A[i] A i 2 print('Yes') print 'Yes' break print('No') print 'No' A = [0] * 10 [0] * 10 A B = list(map(int, input().split())) list(map(int, input().split())) B
A = [0] * 10

B = list(map(int, input().split()))
for i in range(len(B)):
    A[B[i]] += 1

for i in range(len(A)):
    if A[i] == 2:
        print('Yes')
        break
else:
    print('No')
