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