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

isPoor = False

if A == B and A != C :
    isPoor = True

if B == C and B != A :
    isPoor = True

if C == A and C != B :
    isPoor = True

if isPoor :
    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 isPoor = False isPoor False if A == B and A != C :
    isPoor = True A == B and A != C A == B A B A != C A C isPoor = True isPoor True if B == C and B != A :
    isPoor = True B == C and B != A B == C B C B != A B A isPoor = True isPoor True if C == A and C != B :
    isPoor = True C == A and C != B C == A C A C != B C B isPoor = True isPoor True if isPoor :
    print('Yes')
else :
    print('No') isPoor print('Yes') print 'Yes' print('No') print 'No' isPoor = False False isPoor isPoor = True True isPoor isPoor = True True isPoor A, B, C = map(int, input().split()) map(int, input().split()) A C = map(int, input().split()) map(int, input().split()) C isPoor = True True isPoor B, C = map(int, input().split()) map(int, input().split()) B
A, B, C = map(int, input().split())

isPoor = False

if A == B and A != C :
    isPoor = True

if B == C and B != A :
    isPoor = True

if C == A and C != B :
    isPoor = True

if isPoor :
    print('Yes')
else :
    print('No')