A, B, C = input().split()
if C != A == B:
    print("Yes")
elif A != B == C:
    print("Yes")
elif B != C == A:
    print("Yes")
else:
    print("No") A, B, C = input().split() A input().split() ().split () input split B C if C != A == B:
    print("Yes")
elif A != B == C:
    print("Yes")
elif B != C == A:
    print("Yes")
else:
    print("No") C != A == B C != A C A B print("Yes") print "Yes" elif A != B == C:
    print("Yes") A != B == C A != B A B C print("Yes") print "Yes" elif B != C == A:
    print("Yes") B != C == A B != C B C A print("Yes") print "Yes" print("No") print "No" A, B, C = input().split() input().split() A B, C = input().split() input().split() B C = input().split() input().split() C
A, B, C = input().split()
if C != A == B:
    print("Yes")
elif A != B == C:
    print("Yes")
elif B != C == A:
    print("Yes")
else:
    print("No")