main = do
    [a,b,c] <- map read <$> (words <$> getLine) :: IO [Int]
    if a == b && a == c
        then putStrLn "No"
        else if a == b || a == c || b == c
            then putStrLn "Yes"
            else putStrLn "No"
