a, b, c = map(int, input().split())
ret = "No"
if (a == b and a != c) or (b == c and c != a) or (c == a and a != b):
    ret = "Yes"

print("{}".format(ret)) a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c ret = "No" ret "No" if (a == b and a != c) or (b == c and c != a) or (c == a and a != b):
    ret = "Yes" (a == b and a != c) or (b == c and c != a) or (c == a and a != b) (a == b and a != c) or (b == c and c != a) a == b and a != c a == b a b a != c a c b == c and c != a b == c b c c != a c a c == a and a != b c == a c a a != b a b ret = "Yes" ret "Yes" print("{}".format(ret)) print "{}".format(ret) "{}".format "{}" format ret ret = "Yes" "Yes" ret ret = "No" "No" ret c = map(int, input().split()) map(int, input().split()) c b, c = map(int, input().split()) map(int, input().split()) b a, b, c = map(int, input().split()) map(int, input().split()) a
a, b, c = map(int, input().split())
ret = "No"
if (a == b and a != c) or (b == c and c != a) or (c == a and a != b):
    ret = "Yes"

print("{}".format(ret))