  
answer :: [String] -> String
answer (a:b:c:_) | a == b && b == c && a == c = "No"
               | a /= b && b /= c && a /= c = "No"
               | otherwise = "Yes"
main = do
  list <- words <$> getLine
  print $ answer list
