A, B, C = list(map(int, input().split()))
ans = "No"
if A == B:
    if B != C:
        ans = "Yes"
elif A == C or B == C:
    ans = "Yes"
print(ans) A, B, C = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split B C ans = "No" ans "No" if A == B:
    if B != C:
        ans = "Yes"
elif A == C or B == C:
    ans = "Yes" A == B A B if B != C:
        ans = "Yes" B != C B C ans = "Yes" ans "Yes" elif A == C or B == C:
    ans = "Yes" A == C or B == C A == C A C B == C B C ans = "Yes" ans "Yes" print(ans) print ans B, C = list(map(int, input().split())) list(map(int, input().split())) B C = list(map(int, input().split())) list(map(int, input().split())) C ans = "Yes" "Yes" ans A, B, C = list(map(int, input().split())) list(map(int, input().split())) A ans = "No" "No" ans ans = "Yes" "Yes" ans
A, B, C = list(map(int, input().split()))
ans = "No"
if A == B:
    if B != C:
        ans = "Yes"
elif A == C or B == C:
    ans = "Yes"
print(ans)
