poor :: String -> String -> String -> String
poor x y z =
    if (x == y && y == z) || (x /= y && y /= z && z /= x) then "No" else "Yes"

main = do
    [x, y, z] <- words <$> getLine
    print $ poor x y z