a,b,c = map(int, input().split())

ans = "No"

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

ans = "No"

if (a == b or a== c or b == c) and not (a==b==c): ans = "Yes"
  
print(ans)
