from sys import stdin

a,b,c = list(map(int,stdin.readline().rstrip().split()))

if a == b and b != c:

    print("Yes")

elif a == c and b != c:

    print("Yes")

elif b == c and a != c:

    print("Yes")

else:

    print("No")
#解法その１

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

if a == b != c:

    print("Yes")

elif a == c != b:

    print("Yes")

elif b == c != a:

    print("Yes")

else:

    print("No")
from sys import stdin

a, b, c = list(map(int, stdin.readline().rstrip().split()))
if a == b and b != c:
    print("Yes")
elif a == c and b != c:
    print("Yes")
elif b == c and a != c:
    print("Yes")
else:
    print("No")

# 解法その１
a, b, c = list(map(int, input().split()))
if a == b != c:
    print("Yes")
elif a == c != b:
    print("Yes")
elif b == c != a:
    print("Yes")
else:
    print("No")

-from sys import stdin - -a, b, c = list(map(int, stdin.readline().rstrip().split())) -if a == b and b != c: +# 解法その１ +a, b, c = list(map(int, input().split())) +if a == b != c: -elif a == c and b != c: +elif a == c != b: -elif b == c and a != c: +elif b == c != a: