char = list(map(str,input().split()))
if char.count(char[0]) == 2 or char.count(char[1]) == 2:
    print('Yes')
else:
    print('No') char = list(map(str,input().split())) char list(map(str,input().split())) list map(str,input().split()) map str input().split() ().split () input split if char.count(char[0]) == 2 or char.count(char[1]) == 2:
    print('Yes')
else:
    print('No') char.count(char[0]) == 2 or char.count(char[1]) == 2 char.count(char[0]) == 2 char.count(char[0]) char.count char count char[0] char 0 2 char.count(char[1]) == 2 char.count(char[1]) char.count char count char[1] char 1 2 print('Yes') print 'Yes' print('No') print 'No' char = list(map(str,input().split())) list(map(str,input().split())) char
char = list(map(str,input().split()))
if char.count(char[0]) == 2 or char.count(char[1]) == 2:
    print('Yes')
else:
    print('No')