a, b, c = map(int, input().split())
ans = "No"

if a == b and b != c:
    ans = "Yes"
elif b == c and c != a:
    ans = "Yes"
elif a == c and c != b:
    ans = "Yes"

print(ans) a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c ans = "No" ans "No" if a == b and b != c:
    ans = "Yes"
elif b == c and c != a:
    ans = "Yes"
elif a == c and c != b:
    ans = "Yes" a == b and b != c a == b a b b != c b c ans = "Yes" ans "Yes" elif b == c and c != a:
    ans = "Yes" b == c and c != a b == c b c c != a c a ans = "Yes" ans "Yes" elif a == c and c != b:
    ans = "Yes" a == c and c != b a == c a c c != b c b ans = "Yes" ans "Yes" print(ans) print ans ans = "Yes" "Yes" ans ans = "Yes" "Yes" ans b, c = map(int, input().split()) map(int, input().split()) b ans = "No" "No" ans c = map(int, input().split()) map(int, input().split()) c ans = "Yes" "Yes" ans a, b, c = map(int, input().split()) map(int, input().split()) a
a, b, c = map(int, input().split())
ans = "No"

if a == b and b != c:
    ans = "Yes"
elif b == c and c != a:
    ans = "Yes"
elif a == c and c != b:
    ans = "Yes"

print(ans)
