a = list(map(int, input().split()))

for i in range(10):
  if a.count(i) == 2:
    print('Yes')
    exit()
print('No') a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split for i in range(10):
  if a.count(i) == 2:
    print('Yes')
    exit() i range(10) range 10 if a.count(i) == 2:
    print('Yes')
    exit() a.count(i) == 2 a.count(i) a.count a count i 2 print('Yes') print 'Yes' exit() exit print('No') print 'No' a = list(map(int, input().split())) list(map(int, input().split())) a
a = list(map(int, input().split()))

for i in range(10):
  if a.count(i) == 2:
    print('Yes')
    exit()
print('No')
