a, b, c = map(int, input().split())
print("No" if a == b == c or a != b != c != a else "Yes") a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c print("No" if a == b == c or a != b != c != a else "Yes") print "No" if a == b == c or a != b != c != a else "Yes" a == b == c or a != b != c != a a == b == c a == b a b c a != b != c != a a != b != c a != b a b c a "No" "Yes" c = map(int, input().split()) map(int, input().split()) c a, b, c = map(int, input().split()) map(int, input().split()) a b, c = map(int, input().split()) map(int, input().split()) b
a, b, c = map(int, input().split())
print("No" if a == b == c or a != b != c != a else "Yes")