import qualified Data.IntSet as S

main :: IO ()
main = do
  abc <- map read . words <$> getLine
  putStrLn $ if solve abc then "Yes" else "No"

solve :: [Int] -> Bool
solve = (== 2) . S.size . S.fromList
