import           Control.Monad
import qualified Data.ByteString.Char8 as BS
import           Data.List
import           Data.Maybe

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

main = do
  [a, b, c] <- sort <$> getIntList

  putStrLn $ if (a == b && b /= c) || (a /= b && b == c)
             then "Yes"
             else "No"