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