score = list(map(int,input().split()))
if score[0] == score[1] and score[0] != score[2]:
    print('Yes')
elif score[1] == score[2] and score[0] != score[2]:
    print('Yes')
elif score[2] == score[0] and score[1] != score[2]:
    print('Yes')
else:
    print('No') score = list(map(int,input().split())) score list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if score[0] == score[1] and score[0] != score[2]:
    print('Yes')
elif score[1] == score[2] and score[0] != score[2]:
    print('Yes')
elif score[2] == score[0] and score[1] != score[2]:
    print('Yes')
else:
    print('No') score[0] == score[1] and score[0] != score[2] score[0] == score[1] score[0] score 0 score[1] score 1 score[0] != score[2] score[0] score 0 score[2] score 2 print('Yes') print 'Yes' elif score[1] == score[2] and score[0] != score[2]:
    print('Yes') score[1] == score[2] and score[0] != score[2] score[1] == score[2] score[1] score 1 score[2] score 2 score[0] != score[2] score[0] score 0 score[2] score 2 print('Yes') print 'Yes' elif score[2] == score[0] and score[1] != score[2]:
    print('Yes') score[2] == score[0] and score[1] != score[2] score[2] == score[0] score[2] score 2 score[0] score 0 score[1] != score[2] score[1] score 1 score[2] score 2 print('Yes') print 'Yes' print('No') print 'No' score = list(map(int,input().split())) list(map(int,input().split())) score
score = list(map(int,input().split()))
if score[0] == score[1] and score[0] != score[2]:
    print('Yes')
elif score[1] == score[2] and score[0] != score[2]:
    print('Yes')
elif score[2] == score[0] and score[1] != score[2]:
    print('Yes')
else:
    print('No')