from .imports import is_tqdm_available


if is_tqdm_available():
    from tqdm.auto import tqdm as _tqdm

from ..state import PartialState



def lowerCamelCase  (   SCREAMING_SNAKE_CASE = True  ,			*SCREAMING_SNAKE_CASE  ,			**SCREAMING_SNAKE_CASE	):
    '''simple docstring'''







    if not is_tqdm_available():
        raise ImportError('''Accelerate\'s `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`.'''	)
    __UpperCamelCase     :List[str]			  =		False
    if main_process_only:
        __UpperCamelCase     :Dict			  =		PartialState().local_process_index == 0
    return _tqdm(*__snake_case  ,			**__snake_case  ,			disable=__snake_case	)







"""simple docstring"""





def       lowerCamelCase__		(			__snake_case = 10_00	)							->		int:


					"""simple docstring"""





					_UpperCamelCase							 =  2**power
					_UpperCamelCase							 =  str(__snake_case	)
					_UpperCamelCase							 =  list(__snake_case	)
					_UpperCamelCase							 =  0

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

					return sum_of_num


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






