'''simple docstring'''





def     __lowerCAmelCase						(       a_ = 10       ,      a_ = 22		)      ->	int:





     '''simple docstring'''





     SCREAMING_SNAKE_CASE					:			Optional[int]    	=       range(1       ,      a_		)
     SCREAMING_SNAKE_CASE					:			List[Any]    	=       range(1       ,      a_		)
     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) = }""")

'''simple docstring'''





def     __lowerCAmelCase						(       a_ = 1000		)      ->	int:





     '''simple docstring'''





     SCREAMING_SNAKE_CASE					:			Union[str, Any]    	=       2**power
     SCREAMING_SNAKE_CASE					:			Any    	=       str(a_		)
     SCREAMING_SNAKE_CASE					:			int    	=       list(a_		)
     SCREAMING_SNAKE_CASE					:			Any    	=       0

     for i in list_num:
          sum_of_num += int(a_		)

     return sum_of_num


if __name__ == "__main__":
 _lowerCAmelCase  :Tuple  				=    int(input("""Enter the power of 2: """).strip())
 print("""2 ^ """, power, """ = """, 2**power)
 _lowerCAmelCase  :int  				=    solution(power)
 print("""Sum of the digits is: """, result)



