a, b, c = map(int, input().split())
print('No' if a != b and b != c and c != a or a == b and b == c 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 and b != c and c != a or a == b and b == c else 'Yes') print 'No' if a != b and b != c and c != a or a == b and b == c else 'Yes' a != b and b != c and c != a or a == b and b == c a != b and b != c and c != a a != b and b != c a != b a b b != c b c c != a c a a == b and b == c a == b a b b == c b c 'No' 'Yes' a, b, c = map(int, input().split()) map(int, input().split()) a b, c = map(int, input().split()) map(int, input().split()) b c = map(int, input().split()) map(int, input().split()) c
a, b, c = map(int, input().split())
print('No' if a != b and b != c and c != a or a == b and b == c else 'Yes')