s = input().split()
if (s[0] == s[1] and s[1] != s[2]) or (s[0] != s[1] and s[1] == s[2]) or (s[0] == s[2] and s[1] != s[2]):
  print("Yes")
else:
  print("No") s = input().split() s input().split() ().split () input split if (s[0] == s[1] and s[1] != s[2]) or (s[0] != s[1] and s[1] == s[2]) or (s[0] == s[2] and s[1] != s[2]):
  print("Yes")
else:
  print("No") (s[0] == s[1] and s[1] != s[2]) or (s[0] != s[1] and s[1] == s[2]) or (s[0] == s[2] and s[1] != s[2]) (s[0] == s[1] and s[1] != s[2]) or (s[0] != s[1] and s[1] == s[2]) s[0] == s[1] and s[1] != s[2] s[0] == s[1] s[0] s 0 s[1] s 1 s[1] != s[2] s[1] s 1 s[2] s 2 s[0] != s[1] and s[1] == s[2] s[0] != s[1] s[0] s 0 s[1] s 1 s[1] == s[2] s[1] s 1 s[2] s 2 s[0] == s[2] and s[1] != s[2] s[0] == s[2] s[0] s 0 s[2] s 2 s[1] != s[2] s[1] s 1 s[2] s 2 print("Yes") print "Yes" print("No") print "No" s = input().split() input().split() s
s = input().split()
if (s[0] == s[1] and s[1] != s[2]) or (s[0] != s[1] and s[1] == s[2]) or (s[0] == s[2] and s[1] != s[2]):
  print("Yes")
else:
  print("No")