# -*- coding: utf-8 -*-

def main():

    A, B, C = map(int, input().split())

    if A == B and A != C or A == C and A != B or B == C and A != B:
        ans = 'Yes'

    else:
        ans = 'No'

    print(ans)


if __name__ == "__main__":
    main() def main():

    A, B, C = map(int, input().split())

    if A == B and A != C or A == C and A != B or B == C and A != B:
        ans = 'Yes'

    else:
        ans = 'No'

    print(ans) main A, B, C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C if A == B and A != C or A == C and A != B or B == C and A != B:
        ans = 'Yes'

    else:
        ans = 'No'

     A == B and A != C or A == C and A != B or B == C and A != B A == B and A != C or A == C and A != B A == B and A != C A == B A B A != C A C A == C and A != B A == C A C A != B A B B == C and A != B B == C B C A != B A B ans = 'Yes' ans 'Yes' ans = 'No' ans 'No' print(ans) print ans if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():

    A, B, C = map(int, input().split())

    if A == B and A != C or A == C and A != B or B == C and A != B:
        ans = 'Yes'

    else:
        ans = 'No'

    print(ans) def main():

    A, B, C = map(int, input().split())

    if A == B and A != C or A == C and A != B or B == C and A != B:
        ans = 'Yes'

    else:
        ans = 'No'

    print(ans) main
# -*- coding: utf-8 -*-

def main():

    A, B, C = map(int, input().split())

    if A == B and A != C or A == C and A != B or B == C and A != B:
        ans = 'Yes'

    else:
        ans = 'No'

    print(ans)


if __name__ == "__main__":
    main()