def main():

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

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

        print("Yes")

    else:

        print("No")



if __name__ == '__main__':

    main()
listt = list(map(int,input().split(" ")))



sett = set(listt)

if(len(sett)== 2):

    print("Yes")

else:

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


if __name__ == "__main__":
    main()

listt = list(map(int, input().split(" ")))
sett = set(listt)
if len(sett) == 2:
    print("Yes")
else:
    print("No")

-def main(): -    a, b, c = list(map(int, input().split())) -    if (a == b and a != c) or (a == c and b != c) or (b == c and a != b): -        print("Yes") -    else: -        print("No") - - -if __name__ == "__main__": -    main() +listt = list(map(int, input().split(" "))) +sett = set(listt) +if len(sett) == 2: +    print("Yes") +else: +    print("No")