s = set(input().split())
if len(s) == 2:
  print("Yes")
else:
  print("No") s = set(input().split()) s set(input().split()) set input().split() ().split () input split if len(s) == 2:
  print("Yes")
else:
  print("No") len(s) == 2 len(s) len s 2 print("Yes") print "Yes" print("No") print "No" s = set(input().split()) set(input().split()) s
s = set(input().split())
if len(s) == 2:
  print("Yes")
else:
  print("No")