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

if A == B and not A == C:
    print("Yes")
elif A == C and not A == B:
    print("Yes")
elif B == C and not B == A:
    print("Yes")
else:
    print("No") A,B,C = list(map(int,input().split())) A list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split B C if A == B and not A == C:
    print("Yes")
elif A == C and not A == B:
    print("Yes")
elif B == C and not B == A:
    print("Yes")
else:
    print("No") A == B and not A == C A == B A B not A == C A == C A C print("Yes") print "Yes" elif A == C and not A == B:
    print("Yes") A == C and not A == B A == C A C not A == B A == B A B print("Yes") print "Yes" elif B == C and not B == A:
    print("Yes") B == C and not B == A B == C B C not B == A B == A B A print("Yes") print "Yes" print("No") print "No" A,B,C = list(map(int,input().split())) list(map(int,input().split())) A B,C = list(map(int,input().split())) list(map(int,input().split())) B C = list(map(int,input().split())) list(map(int,input().split())) C
A,B,C = list(map(int,input().split()))

if A == B and not A == C:
    print("Yes")
elif A == C and not A == B:
    print("Yes")
elif B == C and not B == A:
    print("Yes")
else:
    print("No")
