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

if a==b and a!=c:
    ans="Yes"

elif a==c and a!=b:
    ans="Yes"

elif b==c and b!=a:
    ans="Yes"

else:
    ans="No"


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

elif a==c and a!=b:
    ans="Yes"

elif b==c and b!=a:
    ans="Yes"

else:
    ans="No" a==b and a!=c a==b a b a!=c a c ans="Yes" ans "Yes" elif a==c and a!=b:
    ans="Yes" a==c and a!=b a==c a c a!=b a b ans="Yes" ans "Yes" elif b==c and b!=a:
    ans="Yes" b==c and b!=a b==c b c b!=a b a ans="Yes" ans "Yes" ans="No" ans "No" print(ans) print ans ans="No" "No" ans ans="Yes" "Yes" ans ans="Yes" "Yes" ans b,c=map(int, input().split()) map(int, input().split()) b a,b,c=map(int, input().split()) map(int, input().split()) a c=map(int, input().split()) map(int, input().split()) c ans="Yes" "Yes" ans
a,b,c=map(int, input().split())

if a==b and a!=c:
    ans="Yes"

elif a==c and a!=b:
    ans="Yes"

elif b==c and b!=a:
    ans="Yes"

else:
    ans="No"


print(ans)    
