l=sorted(list(map(int, input().split())))
if l[0]==l[1]!=l[2] or l[0]!=l[1]==l[2]:
  print("Yes")
else:
  print("No") l=sorted(list(map(int, input().split()))) l sorted(list(map(int, input().split()))) sorted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if l[0]==l[1]!=l[2] or l[0]!=l[1]==l[2]:
  print("Yes")
else:
  print("No") l[0]==l[1]!=l[2] or l[0]!=l[1]==l[2] l[0]==l[1]!=l[2] l[0]==l[1] l[0] l 0 l[1] l 1 l[2] l 2 l[0]!=l[1]==l[2] l[0]!=l[1] l[0] l 0 l[1] l 1 l[2] l 2 print("Yes") print "Yes" print("No") print "No" l=sorted(list(map(int, input().split()))) sorted(list(map(int, input().split()))) l
l=sorted(list(map(int, input().split())))
if l[0]==l[1]!=l[2] or l[0]!=l[1]==l[2]:
  print("Yes")
else:
  print("No")