A,B,C = list(map(int,input().split()))

if (A == B)and(A == C):

    print("No")

elif (A != B)and(B != C)and(A != C):

    print("No")

else:

    print("Yes")
A,B,C = list(map(int,input().split()))



if (A == B)and(A==C):

    print("No")

elif (A != B)and(A != C)and(B != C):

    print("No")

else:

    print("Yes")
A, B, C = list(map(int, input().split()))
if (A == B) and (A == C):
    print("No")
elif (A != B) and (B != C) and (A != C):
    print("No")
else:
    print("Yes")

A, B, C = list(map(int, input().split()))
if (A == B) and (A == C):
    print("No")
elif (A != B) and (A != C) and (B != C):
    print("No")
else:
    print("Yes")

-elif (A != B) and (B != C) and (A != C): +elif (A != B) and (A != C) and (B != C):