# -*- coding: utf-8 -*-
ABC = input()
ABC = ABC.replace(" ", "")
if ABC.count(ABC[0]) == 2 or ABC.count(ABC[1]) == 2 or ABC.count(ABC[2]) == 2:
  print("Yes")
else:
  print("No") ABC = input() ABC input() input ABC = ABC.replace(" ", "") ABC ABC.replace(" ", "") ABC.replace ABC replace " " "" if ABC.count(ABC[0]) == 2 or ABC.count(ABC[1]) == 2 or ABC.count(ABC[2]) == 2:
  print("Yes")
else:
  print("No") ABC.count(ABC[0]) == 2 or ABC.count(ABC[1]) == 2 or ABC.count(ABC[2]) == 2 ABC.count(ABC[0]) == 2 or ABC.count(ABC[1]) == 2 ABC.count(ABC[0]) == 2 ABC.count(ABC[0]) ABC.count ABC count ABC[0] ABC 0 2 ABC.count(ABC[1]) == 2 ABC.count(ABC[1]) ABC.count ABC count ABC[1] ABC 1 2 ABC.count(ABC[2]) == 2 ABC.count(ABC[2]) ABC.count ABC count ABC[2] ABC 2 2 print("Yes") print "Yes" print("No") print "No" ABC = ABC.replace(" ", "") ABC.replace(" ", "") ABC ABC = input() input() ABC
# -*- coding: utf-8 -*-
ABC = input()
ABC = ABC.replace(" ", "")
if ABC.count(ABC[0]) == 2 or ABC.count(ABC[1]) == 2 or ABC.count(ABC[2]) == 2:
  print("Yes")
else:
  print("No")