# A - Poor

def main():

    *ABC, = list(map(int, input().split()))

    is_poor = len(set(ABC)) == 2

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





if __name__ == "__main__":

    main()

# A - Poor

def is_poor(x: int, y: int, z: int) -> bool:

    for _ in range(3):

        x, y, z = y, z, x

        if x == y != z:

            return True

    return False





def main():

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

    print(("Yes" if is_poor(A, B, C) else "No"))





if __name__ == "__main__":

    main()

# A - Poor
def main():
    (*ABC,) = list(map(int, input().split()))
    is_poor = len(set(ABC)) == 2
    print(("Yes" if is_poor else "No"))


if __name__ == "__main__":
    main()

# A - Poor
def is_poor(x: int, y: int, z: int) -> bool:
    for _ in range(3):
        x, y, z = y, z, x
        if x == y != z:
            return True
    return False


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


if __name__ == "__main__":
    main()

+def is_poor(x: int, y: int, z: int) -> bool: +    for _ in range(3): +        x, y, z = y, z, x +        if x == y != z: +            return True +    return False + + -    (*ABC,) = list(map(int, input().split())) -    is_poor = len(set(ABC)) == 2 -    print(("Yes" if is_poor else "No")) +    A, B, C = list(map(int, input().split())) +    print(("Yes" if is_poor(A, B, C) else "No"))