



"""simple docstring"""





class 			lowercase__			:
       '''simple docstring'''







       def __init__(  self	,       snake_case						)			->							None:
         _UpperCAmelCase							 =		set_counts
         _UpperCAmelCase							 =		max(snake_case						)
         _UpperCAmelCase							 =		len(snake_case						)
         _UpperCAmelCase							 =		[1] * num_sets
         _UpperCAmelCase							 =		list(range(snake_case						)						)






       def        lowerCamelCase_   (  self	,       snake_case	,       snake_case						)			->							bool:
         _UpperCAmelCase							 =		self.get_parent(snake_case						)
         _UpperCAmelCase							 =		self.get_parent(snake_case						)

         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]
           _UpperCAmelCase							 =		0
           _UpperCAmelCase							 =		dst_parent
           if self.ranks[dst_parent] == self.ranks[src_parent]:
             self.ranks[dst_parent] += 1
           _UpperCAmelCase							 =		self.set_counts[dst_parent]
         else:
           self.set_counts[src_parent] += self.set_counts[dst_parent]
           _UpperCAmelCase							 =		0
           _UpperCAmelCase							 =		src_parent
           _UpperCAmelCase							 =		self.set_counts[src_parent]

         _UpperCAmelCase							 =		max(self.max_set	,       snake_case						)
         return True






       def        lowerCamelCase_   (  self	,       snake_case						)			->							int:

         if self.parents[disj_set] == disj_set:
           return disj_set
         _UpperCAmelCase							 =		self.get_parent(self.parents[disj_set]						)
         return self.parents[disj_set]







"""simple docstring"""





from __future__ import annotations

from cmath import sqrt




def 	UpperCAmelCase     (		A	:						int     ,				A	:						int     ,				A	:						int       ):

		'''simple docstring'''


		if a == 0:
				raise ValueError('Coefficient \'a\' must not be zero.'       )
		_UpperCAmelCase							 =		b * b - 4 * a * c

		_UpperCAmelCase							 =		(-b + sqrt(A       )) / (2 * a)
		_UpperCAmelCase							 =		(-b - sqrt(A       )) / (2 * a)

		return (
		    root_a.real if not root_a.imag else root_a,
		    root_a.real if not root_a.imag else root_a,
		)




def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase ,					_UpperCAmelCase							 =		quadratic_roots(a=5     ,				b=6     ,				c=1       )
		print(f'The solutions are: {solutiona} and {solutiona}'       )


if __name__ == "__main__":
					main()


