li=list(map(int,input().split()))
for i in li:
  if li.count(i)==2:
    print("Yes")
    break
else:
  print("No") li=list(map(int,input().split())) li list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split for i in li:
  if li.count(i)==2:
    print("Yes")
    break
else:
  print("No") i li if li.count(i)==2:
    print("Yes")
    break li.count(i)==2 li.count(i) li.count li count i 2 print("Yes") print "Yes" break print("No") print "No" li=list(map(int,input().split())) list(map(int,input().split())) li
li=list(map(int,input().split()))
for i in li:
  if li.count(i)==2:
    print("Yes")
    break
else:
  print("No")