




def    UpperCAmelCase_				( __UpperCAmelCase		:      int = 10     ,     __UpperCAmelCase		:      int = 22				)   ->					int:
      SCREAMING_SNAKE_CASE_      		=     range(1     ,     __UpperCAmelCase				)
      SCREAMING_SNAKE_CASE_      		=     range(1     ,     __UpperCAmelCase				)
      return sum(
          1 for power in powers for base in bases if len(str(base**power				)				) == power				)


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





from __future__ import annotations

from collections.abc import Iterator





class 			lowerCamelCase_				:


 '''simple docstring'''







 def __init__(				self    :						Union[str, Any]							,							_lowerCAmelCase    :						int		):
       SCREAMING_SNAKE_CASE_      		=     value
       SCREAMING_SNAKE_CASE_      		=     None
       SCREAMING_SNAKE_CASE_      		=     None





class 			lowerCamelCase_				:


 '''simple docstring'''







 def __init__(				self    :						int							,							_lowerCAmelCase    :						Node		):
       SCREAMING_SNAKE_CASE_      		=     tree



 def  lowerCAmelCase_    (				self    :						Union[str, Any]							,							_lowerCAmelCase    :						Node | None		):
       if node is None:
             return 0
       return node.value + (
           self.depth_first_search(node.left		) + self.depth_first_search(node.right		)
       )




 def __iter__(				self    :						Dict		):
       yield self.depth_first_search(self.tree		)


if __name__ == "__main__":
   import doctest

   doctest.testmod()