poor :: Int -> Int -> Int -> Bool
poor a b c
 | a == b && a /= c  = True
 | a == c && a /= b  = True
 | b == c && a /= b  = True
 | otherwise         = False

main = do
    [a, b, c] <- (map read).words <$> getLine
    if poor a b c then putStrLn "Yes" else putStrLn "No"