




"""simple docstring"""


class _lowerCamelCase    :






   def __init__(		self       :		Optional[Any]   ,     UpperCamelCase       :		list   )			->						None:

         """simple docstring"""
         lowerCAmelCase__      :			Dict   =	set_counts
         lowerCAmelCase__      :			Dict   =	max(UpperCamelCase   )
         lowerCAmelCase__      :			Dict   =	len(UpperCamelCase   )
         lowerCAmelCase__      :			Optional[Any]   =	[1] * num_sets
         lowerCAmelCase__      :			Optional[Any]   =	list(range(UpperCamelCase   )   )






   def 	_lowerCAmelCase   (		self       :		Dict   ,     UpperCamelCase       :		int   ,     UpperCamelCase       :		int   )			->						bool:

         """simple docstring"""
         lowerCAmelCase__      :			List[Any]   =	self.get_parent(UpperCamelCase   )
         lowerCAmelCase__      :			List[str]   =	self.get_parent(UpperCamelCase   )

         if src_parent == dst_parent:
               return False

         if self.ranks[dst_parent] >= self.ranks[src_parent]:
               self.set_counts[dst_parent] += self.set_counts[src_parent]
               lowerCAmelCase__      :			str   =	0
               lowerCAmelCase__      :			Dict   =	dst_parent
               if self.ranks[dst_parent] == self.ranks[src_parent]:
                     self.ranks[dst_parent] += 1
               lowerCAmelCase__      :			Optional[Any]   =	self.set_counts[dst_parent]
         else:
               self.set_counts[src_parent] += self.set_counts[dst_parent]
               lowerCAmelCase__      :			List[Any]   =	0
               lowerCAmelCase__      :			Optional[int]   =	src_parent
               lowerCAmelCase__      :			Dict   =	self.set_counts[src_parent]

         lowerCAmelCase__      :			Tuple   =	max(self.max_set   ,     UpperCamelCase   )
         return True






   def 	_lowerCAmelCase   (		self       :		str   ,     UpperCamelCase       :		int   )			->						int:

         """simple docstring"""
         if self.parents[disj_set] == disj_set:
               return disj_set
         lowerCAmelCase__      :			int   =	self.get_parent(self.parents[disj_set]   )
         return self.parents[disj_set]











"""simple docstring"""


def 	lowercase_				(			__UpperCAmelCase    ,		__UpperCAmelCase				)						->    str:
      return "\n".join(
          f"""{number} * {i} = {number * i}""" for i in range(1    ,		number_of_terms + 1				)				)


if __name__ == "__main__":
  print(multiplication_table(number=5, number_of_terms=1_0))





