A, B, C = input().split()
S = A + B + C
ans = 'No'
for i in range(len(S)):
    if S.count(S[i]) == 2:
        ans = 'Yes'
        break
print(ans) A, B, C = input().split() A input().split() ().split () input split B C S = A + B + C S A + B + C A + B A B C ans = 'No' ans 'No' for i in range(len(S)):
    if S.count(S[i]) == 2:
        ans = 'Yes'
        break i range(len(S)) range len(S) len S if S.count(S[i]) == 2:
        ans = 'Yes'
        break S.count(S[i]) == 2 S.count(S[i]) S.count S count S[i] S i 2 ans = 'Yes' ans 'Yes' break print(ans) print ans A, B, C = input().split() input().split() A B, C = input().split() input().split() B C = input().split() input().split() C ans = 'Yes' 'Yes' ans S = A + B + C A + B + C S ans = 'No' 'No' ans
A, B, C = input().split()
S = A + B + C
ans = 'No'
for i in range(len(S)):
    if S.count(S[i]) == 2:
        ans = 'Yes'
        break
print(ans)