A,B,C = map(int,input().split())

if A == B and A != C and B != C:
    print("Yes")
elif A == C and A != B and C != B:
    print("Yes")
elif B == C and B != A and C != A:
    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 and A != C and B != C:
    print("Yes")
elif A == C and A != B and C != B:
    print("Yes")
elif B == C and B != A and C != A:
    print("Yes")
else:
    print("No") A == B and A != C and B != C A == B and A != C A == B A B A != C A C B != C B C print("Yes") print "Yes" elif A == C and A != B and C != B:
    print("Yes") A == C and A != B and C != B A == C and A != B A == C A C A != B A B C != B C B print("Yes") print "Yes" elif B == C and B != A and C != A:
    print("Yes") B == C and B != A and C != A B == C and B != A B == C B C B != A B A C != A C A 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 and A != C and B != C:
    print("Yes")
elif A == C and A != B and C != B:
    print("Yes")
elif B == C and B != A and C != A:
    print("Yes")
else:
    print("No")