import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Text.Read as T
import Data.List (sort, group)

main :: IO ()
main = do
  abc <- map unsafeTextToInt . T.words <$> T.getLine :: IO [Int]
  let
    l = length . group . sort $ abc
  putStrLn $ if l == 2 then "Yes" else "No"

unsafeTextToInt :: T.Text -> Int
unsafeTextToInt s = case T.signed T.decimal s of
  Right (n, _) -> n
