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