


'''simple docstring'''



from __future__ import annotations


class 						_snake_case   :




					def __init__( self							,							_lowerCamelCase=None):
								UpperCAmelCase__					:   List[Any]       				=       data
								UpperCAmelCase__					:   str       				=       None




					def __repr__( self):
								UpperCAmelCase__					:   List[Any]       				=       []
								UpperCAmelCase__					:   Optional[int]       				=       self
								while temp:
											string_rep.append(f'''{temp.data}''')
											UpperCAmelCase__					:   Optional[int]       				=       temp.next
								return "->".join(_lowerCamelCase)







def       _UpperCamelCase (						UpperCamelCase__   ):
			if not elements_list:
						raise Exception("""The Elements List is empty"""   )

			UpperCAmelCase__					:   str       				=       Node(elements_list[0]   )
			for i in range(1	, len(UpperCamelCase__   )   ):
						UpperCAmelCase__					:   List[str]       				=       Node(elements_list[i]   )
						UpperCAmelCase__					:   List[Any]       				=       current.next
			return head







def       _UpperCamelCase (						UpperCamelCase__   ):
			if head_node is not None and isinstance(UpperCamelCase__	, UpperCamelCase__   ):
						print_reverse(head_node.next   )
						print(head_node.data   )







def       _UpperCamelCase (						):
			from doctest import testmod

			testmod()

			UpperCAmelCase__					:   Tuple       				=       make_linked_list([1_4, 5_2, 1_4, 1_2, 4_3]   )
			print("""Linked List:"""   )
			print(UpperCamelCase__   )
			print("""Elements in Reverse:"""   )
			print_reverse(UpperCamelCase__   )


if __name__ == "__main__":
		main()



'''simple docstring'''



def       _UpperCamelCase (						UpperCamelCase__ = 1_0	, UpperCamelCase__ = 2_2   ):
			UpperCAmelCase__					:   List[str]       				=       range(1	, UpperCamelCase__   )
			UpperCAmelCase__					:   int       				=       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) = }""")