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

if A==B and A!=C:

    print('Yes')

elif B==C and C!=A:

    print('Yes')

elif C==A and A!=B:

    print('Yes')

else:

    print('No')
#!/usr/bin/env python3

#import sys; sys.stdin=open('input_file.txt')

#------------------------------------------

S = set(map(int,input().split()))

print(('Yes' if len(S)==2 else 'No'))

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

#!/usr/bin/env python3
# import sys; sys.stdin=open('input_file.txt')
# ------------------------------------------
S = set(map(int, input().split()))
print(("Yes" if len(S) == 2 else "No"))

-A, B, C = list(map(int, input().split())) -if A == B and A != C: -    print("Yes") -elif B == C and C != A: -    print("Yes") -elif C == A and A != B: -    print("Yes") -else: -    print("No") +#!/usr/bin/env python3 +# import sys; sys.stdin=open('input_file.txt') +S = set(map(int, input().split())) +print(("Yes" if len(S) == 2 else "No"))