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

if A ==B and B == C:

    print('No')

elif B == C:

    print('Yes')

elif A == C:

    print('Yes')

elif A == B:

    print('Yes')

else:

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

if A == B == C:

    print('No')

elif B == C:

    print('Yes')

elif A == C:

    print('Yes')

elif A == B:

    print('Yes')

else:

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

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

-if A == B and B == C: +if A == B == C: