a, b, c = input().split()
ans = "No"
if (a == b and a != c) or (a == c and a != b) or (b == c and a != b):
  ans  = "Yes"
print(ans) a, b, c = input().split() a input().split() ().split () input split b c ans = "No" ans "No" if (a == b and a != c) or (a == c and a != b) or (b == c and a != b):
  ans  = "Yes" (a == b and a != c) or (a == c and a != b) or (b == c and a != b) (a == b and a != c) or (a == c and a != b) a == b and a != c a == b a b a != c a c a == c and a != b a == c a c a != b a b b == c and a != b b == c b c a != b a b ans  = "Yes" ans "Yes" print(ans) print ans ans = "No" "No" ans ans  = "Yes" "Yes" ans c = input().split() input().split() c a, b, c = input().split() input().split() a b, c = input().split() input().split() b
a, b, c = input().split()
ans = "No"
if (a == b and a != c) or (a == c and a != b) or (b == c and a != b):
  ans  = "Yes"
print(ans)