"""simple docstring"""


def       lowerCamelCase_			( __lowerCAmelCase    )							-> Optional[int]:




      '''simple docstring'''



      lowerCamelCase__ =9

      while num > 0:
            if num % 10 != digit:
                  return False
            num //= 100
            digit -= 1

      return True





def       lowerCamelCase_			( )							-> Dict:




      '''simple docstring'''



      lowerCamelCase__ =1_3890_2663

      while not is_square_form(num * num    ):
            if num % 10 == 3:
                  num -= 6  # (3 - 6) % 10 = 7
            else:
                  num -= 4  # (7 - 4) % 10 = 3

      return num * 10


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



"""simple docstring"""


def       lowerCamelCase_			( __lowerCAmelCase    )							-> bool:




						'''simple docstring'''



						if not isinstance(__lowerCAmelCase       ,   __lowerCAmelCase    ):
												raise ValueError("Input series is not valid, valid series - [2, 4, 8]"    )
						if len(__lowerCAmelCase    ) == 0:
												raise ValueError("Input list must be a non empty list"    )
						if len(__lowerCAmelCase    ) == 1:
												return True
						try:
												lowerCamelCase__ =series[1] / series[0]
												for index in range(len(__lowerCAmelCase    ) - 1    ):
																		if series[index + 1] / series[index] != common_ratio:
																								return False
						except ZeroDivisionError:
												return False
						return True





def       lowerCamelCase_			( __lowerCAmelCase    )							-> float:




						'''simple docstring'''



						if not isinstance(__lowerCAmelCase       ,   __lowerCAmelCase    ):
												raise ValueError("Input series is not valid, valid series - [2, 4, 8]"    )
						if len(__lowerCAmelCase    ) == 0:
												raise ValueError("Input list must be a non empty list"    )
						lowerCamelCase__ =1
						for value in series:
												answer *= value
						return pow(__lowerCAmelCase       ,   1 / len(__lowerCAmelCase    )    )


if __name__ == "__main__":
	import doctest

	doctest.testmod()


