input: from typing import List
  
  def find_mode(numbers: List[int]) -> int:
      """
      Find the mode of a given set of numbers.
  
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2
      >>> find_mode([5, 5, 5, 5, 5, 5])
      5
      >>> find_mode([1, 2, 3, 4, 5])
      1
      """
output:     frequency = {}
      for num in numbers:
          if num in frequency:
              frequency[num] += 1
          else:
              frequency[num] = 1
      
      max_count = max(frequency.values())
      modes = [num for num, count in frequency.items() if count == max_count]
      
      return min(modes)