






'''simple docstring'''



from math import pow


def 							lowercase_				(    __A :       Any					,      __A :       Dict					,      __A :       Optional[Any]					,      __A :       int					,      __A :       Any					,      )       ->      Optional[int]:



	"""simple docstring"""




	if current_sum == needed_sum:
		# If the sum of the powers is equal to needed_sum, then we have a solution.
		solutions_count += 1
		return current_sum, solutions_count

	lowercase					:   int				  =int(pow(__A					,      __A			)			)
	if current_sum + i_to_n <= needed_sum:
		# If the sum of the powers is less than needed_sum, then continue adding powers.
		current_sum += i_to_n
		lowercase  ,		lowercase					:   List[Any]				  =backtrack(
		    __A					,      __A					,      current_number + 1					,      __A					,      __A			)
		current_sum -= i_to_n
	if i_to_n < needed_sum:
		# If the power of i is less than needed_sum, then try with the next power.
		lowercase  ,		lowercase					:   Tuple				  =backtrack(
		    __A					,      __A					,      current_number + 1					,      __A					,      __A			)
	return current_sum, solutions_count


def 							lowercase_				(    __A :       Any					,      __A :       Union[str, Any]			)       ->      int:



	"""simple docstring"""




	if not (1 <= needed_sum <= 1_0_0_0 and 2 <= power <= 1_0):
		raise ValueError(
		    '''Invalid input\n'''
		    '''needed_sum must be between 1 and 1000, power between 2 and 10.'''			)

	return backtrack(__A					,      __A					,      1					,      0					,      0			)[1]  # Return the solutions_count


if __name__ == "__main__":
						import doctest

						doctest.testmod()











'''simple docstring'''



def 							lowercase_				(    __A :       float					,      __A :       int			)       ->      float:



 """simple docstring"""




 if digit_amount > 0:
  return round(number - int(__A			)					,      __A			)
 return number - int(__A			)


if __name__ == "__main__":
      print(decimal_isolate(1.53, 0))
      print(decimal_isolate(35.345, 1))
      print(decimal_isolate(35.345, 2))
      print(decimal_isolate(35.345, 3))
      print(decimal_isolate(-14.789, 3))
      print(decimal_isolate(0, 2))
      print(decimal_isolate(-14.123, 1))
      print(decimal_isolate(-14.123, 2))
      print(decimal_isolate(-14.123, 3))



