

"""simple docstring"""






def   lowercase_	(    _lowercase       :		int	):




					'''simple docstring'''






					if divisor % 5 == 0 or divisor % 2 == 0:
										return 0
					UpperCAmelCase			:   str      =				1
					UpperCAmelCase			:   Optional[int]      =				1
					while repunit:
										UpperCAmelCase			:   Dict      =				(10 * repunit + 1) % divisor
										repunit_index += 1
					return repunit_index



def   lowercase_	(    _lowercase       :		int = 1_00_00_00	):




					'''simple docstring'''






					UpperCAmelCase			:   Union[str, Any]      =				limit - 1
					if divisor % 2 == 0:
										divisor += 1
					while least_divisible_repunit(_lowercase	) <= limit:
										divisor += 2
					return divisor


if __name__ == "__main__":
	print(f'''{solution() = }''')





"""simple docstring"""






import math



def   lowercase_	(    _lowercase       :		int	):




					'''simple docstring'''






					return math.sqrt(_lowercase	) * math.sqrt(_lowercase	) == num



def   lowercase_	(    _lowercase       :		int	):




					'''simple docstring'''






					UpperCAmelCase			:   List[Any]      =				0
					UpperCAmelCase			:   Tuple      =				n
					while left <= right:
										UpperCAmelCase			:   Tuple      =				(left + right) // 2
										if mid**2 == n:
															return True
										elif mid**2 > n:
															UpperCAmelCase			:   List[str]      =				mid - 1
										else:
															UpperCAmelCase			:   Any      =				mid + 1
					return False


if __name__ == "__main__":
	import doctest

	doctest.testmod()


