# A - Poor

def main():

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

    is_poor = (A == B and A != C) or (A == C and A != B) or (B == C and A != B)

    print(("Yes" if is_poor else "No"))





if __name__ == "__main__":

    main()

# A - Poor

def main():

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

    is_poor = A == B != C or A == C != B or B == C != A

    print(("Yes" if is_poor else "No"))





if __name__ == "__main__":

    main()

# A - Poor
def main():
    A, B, C = list(map(int, input().split()))
    is_poor = (A == B and A != C) or (A == C and A != B) or (B == C and A != B)
    print(("Yes" if is_poor else "No"))


if __name__ == "__main__":
    main()

# A - Poor
def main():
    A, B, C = list(map(int, input().split()))
    is_poor = A == B != C or A == C != B or B == C != A
    print(("Yes" if is_poor else "No"))


if __name__ == "__main__":
    main()

-    is_poor = (A == B and A != C) or (A == C and A != B) or (B == C and A != B) +    is_poor = A == B != C or A == C != B or B == C != A