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

if A == B == C :
    print('No')
elif A == B :
    print('Yes')
elif B == C :
    print('Yes')
elif C == A :
    print('Yes')
elif A == B == C :
    print('No')
else :
    print('No') A,B,C = input().split() A input().split() ().split () input split B C A = int(A) A int(A) int A B = int(B) B int(B) int B C = int(C) C int(C) int C if A == B == C :
    print('No')
elif A == B :
    print('Yes')
elif B == C :
    print('Yes')
elif C == A :
    print('Yes')
elif A == B == C :
    print('No')
else :
    print('No') A == B == C A == B A B C print('No') print 'No' elif A == B :
    print('Yes') A == B A B print('Yes') print 'Yes' elif B == C :
    print('Yes') B == C B C print('Yes') print 'Yes' elif C == A :
    print('Yes') C == A C A print('Yes') print 'Yes' elif A == B == C :
    print('No') A == B == C A == B A B C print('No') print 'No' print('No') print 'No' B,C = input().split() input().split() B A = int(A) int(A) A A,B,C = input().split() input().split() A B = int(B) int(B) B C = int(C) int(C) C C = input().split() input().split() C
A,B,C = input().split()
A = int(A)
B = int(B)
C = int(C)

if A == B == C :
    print('No')
elif A == B :
    print('Yes')
elif B == C :
    print('Yes')
elif C == A :
    print('Yes')
elif A == B == C :
    print('No')
else :
    print('No')