input: def distribute_fruits(description, total_fruits):
      """
      In this task, you are given a string which specifies the number of apples and oranges
      in a basket full of fruits. The basket contains apples, oranges, and mangoes.
      Given the string that indicates the quantities of apples and oranges, and an integer that indicates the total number of fruits,
      return the count of mangoes in the basket.
      For example:
      distribute_fruits("5 apples and 6 oranges", 19) -> 19 - 5 - 6 = 8
      distribute_fruits("0 apples and 1 oranges", 3) -> 3 - 0 - 1 = 2
      distribute_fruits("2 apples and 3 oranges", 100) -> 100 - 2 - 3 = 95
      distribute_fruits("100 apples and 1 orange", 120) -> 120 - 100 - 1 = 19
      """
output:     
      # Extract the number of apples from the description
      words = description.split()
      apples = int(words[0])
      
      # Extract the number of oranges from the description
      for i, word in enumerate(words):
          if word == "oranges" or word == "orange":
              oranges = int(words[i - 1])
              break
      
      # Calculate the number of mangoes
      mangoes = total_fruits - apples - oranges
      return mangoes
  