A,B,C=map(int,input().split())
result=0
if A == B:
    if A != C and B != C:
        result+=1
elif A == C:
    if A != B and B != C:
        result+=1
elif B == A:
    if B != A and C != B:
        result+=1
elif B ==C:
    if B != A and A != C:
        result+=1
elif C == A:
    if C != B and A == B:
        result+=1
elif C == B:
    if C != A and A == B:
        result+=1
if result==1:
    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 result=0 result 0 if A == B:
    if A != C and B != C:
        result+=1
elif A == C:
    if A != B and B != C:
        result+=1
elif B == A:
    if B != A and C != B:
        result+=1
elif B ==C:
    if B != A and A != C:
        result+=1
elif C == A:
    if C != B and A == B:
        result+=1
elif C == B:
    if C != A and A == B:
        result+=1 A == B A B if A != C and B != C:
        result+=1 A != C and B != C A != C A C B != C B C result+=1 result 1 elif A == C:
    if A != B and B != C:
        result+=1 A == C A C if A != B and B != C:
        result+=1 A != B and B != C A != B A B B != C B C result+=1 result 1 elif B == A:
    if B != A and C != B:
        result+=1 B == A B A if B != A and C != B:
        result+=1 B != A and C != B B != A B A C != B C B result+=1 result 1 elif B ==C:
    if B != A and A != C:
        result+=1 B ==C B C if B != A and A != C:
        result+=1 B != A and A != C B != A B A A != C A C result+=1 result 1 elif C == A:
    if C != B and A == B:
        result+=1 C == A C A if C != B and A == B:
        result+=1 C != B and A == B C != B C B A == B A B result+=1 result 1 elif C == B:
    if C != A and A == B:
        result+=1 C == B C B if C != A and A == B:
        result+=1 C != A and A == B C != A C A A == B A B result+=1 result 1 if result==1:
    print('Yes')
else:
    print('No') result==1 result 1 print('Yes') print 'Yes' print('No') print 'No' A,B,C=map(int,input().split()) map(int,input().split()) A C=map(int,input().split()) map(int,input().split()) C result+=1 1 result result+=1 1 result result+=1 1 result result+=1 1 result result=0 0 result result+=1 1 result B,C=map(int,input().split()) map(int,input().split()) B result+=1 1 result
A,B,C=map(int,input().split())
result=0
if A == B:
    if A != C and B != C:
        result+=1
elif A == C:
    if A != B and B != C:
        result+=1
elif B == A:
    if B != A and C != B:
        result+=1
elif B ==C:
    if B != A and A != C:
        result+=1
elif C == A:
    if C != B and A == B:
        result+=1
elif C == B:
    if C != A and A == B:
        result+=1
if result==1:
    print('Yes')
else:
    print('No')