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