main = do
  [a,b,c] <- map read . words <$> getLine
  putStrLn $ f a b c

f :: Int -> Int -> Int -> String
f a b c 
  | a == b && b /= c = "Yes"
  | a == c && c /= b = "Yes"
  | b == c && c /= a = "Yes"
  | otherwise = "No"