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

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

if A == B:
    if A != C:
        print("Yes")
    else:
        print("No")
else:
    if B == C or A == C:
        print("Yes")
    else:
        print("No")