import itertools

import math

import fractions

import functools

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

if (a == b and a != c) or (b == c and b != a) or (a == c and a != b):

    print("Yes")

else: print("No")
a, b, c = list(map(int, input().split()))

if (a == b or a == c or b ==c) and not (a == b and a == c):

    print("Yes")

else:print("No")
import itertools
import math
import fractions
import functools

a, b, c = list(map(int, input().split()))
if (a == b and a != c) or (b == c and b != a) or (a == c and a != b):
    print("Yes")
else:
    print("No")

a, b, c = list(map(int, input().split()))
if (a == b or a == c or b == c) and not (a == b and a == c):
    print("Yes")
else:
    print("No")

-import itertools -import math -import fractions -import functools - -if (a == b and a != c) or (b == c and b != a) or (a == c and a != b): +if (a == b or a == c or b == c) and not (a == b and a == c):