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

a_b = a==b
b_c = b==c
a_c = a==c

if a_b and b_c and a_c:    
    print("No")

elif a_b or b_c or a_c:
    print("Yes") 

else:
    print("No") a,b,c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c a_b = a==b a_b a==b a b b_c = b==c b_c b==c b c a_c = a==c a_c a==c a c if a_b and b_c and a_c:    
    print("No")

elif a_b or b_c or a_c:
    print("Yes") 

else:
    print("No") a_b and b_c and a_c a_b and b_c a_b b_c a_c print("No") print "No" elif a_b or b_c or a_c:
    print("Yes")  a_b or b_c or a_c a_b or b_c a_b b_c a_c print("Yes") print "Yes" print("No") print "No" a_b = a==b a==b a_b a_c = a==c a==c a_c c = map(int, input().split()) map(int, input().split()) c b,c = map(int, input().split()) map(int, input().split()) b a,b,c = map(int, input().split()) map(int, input().split()) a b_c = b==c b==c b_c
a,b,c = map(int, input().split())

a_b = a==b
b_c = b==c
a_c = a==c

if a_b and b_c and a_c:    
    print("No")

elif a_b or b_c or a_c:
    print("Yes") 

else:
    print("No")