ls = sorted(list(map(int,input().split())))

if ls[0] == ls[1] and ls[0] != ls[2]:

    print('Yes')

elif ls[1] == ls[2] and ls[0] != ls[1]:

    print('Yes')

elif ls[0] == ls[2] and ls[0] != ls[1]:

    print('Yes')

else:

    print('No')
ls = sorted(list(map(int,input().split())))

bool = 0 

if ls[0] == ls[1] and ls[1] != ls[2]:

    bool = 1 

elif ls[1] == ls[2] and ls[0] != ls[1]:

    bool = 1

elif ls[0] == ls[2] and ls[0] != ls[1]:

    bool = 1

if bool:

    print('Yes')

else:

    print('No')
ls = sorted(list(map(int, input().split())))
if ls[0] == ls[1] and ls[0] != ls[2]:
    print("Yes")
elif ls[1] == ls[2] and ls[0] != ls[1]:
    print("Yes")
elif ls[0] == ls[2] and ls[0] != ls[1]:
    print("Yes")
else:
    print("No")

ls = sorted(list(map(int, input().split())))
bool = 0
if ls[0] == ls[1] and ls[1] != ls[2]:
    bool = 1
elif ls[1] == ls[2] and ls[0] != ls[1]:
    bool = 1
elif ls[0] == ls[2] and ls[0] != ls[1]:
    bool = 1
if bool:
    print("Yes")
else:
    print("No")

-if ls[0] == ls[1] and ls[0] != ls[2]: -    print("Yes") +bool = 0 +if ls[0] == ls[1] and ls[1] != ls[2]: +    bool = 1 -    print("Yes") +    bool = 1 +    bool = 1 +if bool: