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