import sys



*a, = list(map(int, sys.stdin.readline().split()))

a.sort()

a, b, c = a



def main():

    if a == b != c or a != b == c:

        return 'Yes'

    return 'No'



if __name__ == '__main__':

    ans = main()

    print(ans)
import sys



*a, = list(map(int, sys.stdin.readline().split()))



def main():

    ans = 'Yes' if len(set(a)) == 2 else 'No'

    print(ans)



if __name__ ==  '__main__':

    main()
import sys

(*a,) = list(map(int, sys.stdin.readline().split()))
a.sort()
a, b, c = a


def main():
    if a == b != c or a != b == c:
        return "Yes"
    return "No"


if __name__ == "__main__":
    ans = main()
    print(ans)

import sys

(*a,) = list(map(int, sys.stdin.readline().split()))


def main():
    ans = "Yes" if len(set(a)) == 2 else "No"
    print(ans)


if __name__ == "__main__":
    main()

-a.sort() -a, b, c = a -    if a == b != c or a != b == c: -        return "Yes" -    return "No" +    ans = "Yes" if len(set(a)) == 2 else "No" +    print(ans) -    ans = main() -    print(ans) +    main()