





'''simple docstring'''






import functools
from typing import Any



def        UpperCamelCase__		(						__magic_name__  :   str		,       __magic_name__  :   list[str]      )				->			bool:
 '''simple docstring'''






 if not isinstance(__magic_name__		,       __magic_name__      ) or len(__magic_name__      ) == 0:
  raise ValueError("""the string should be not empty string"""      )

 if not isinstance(__magic_name__		,       __magic_name__      ) or not all(
     isinstance(__magic_name__		,       __magic_name__      ) and len(__magic_name__      ) > 0 for item in words      ):
  raise ValueError("""the words should be a list of non-empty strings"""      )

 # Build trie
 snake_case__     :					dict[str, Any]    =  {}
 snake_case__     :					Optional[Any]    =  """WORD_KEEPER"""

 for word in words:
  snake_case__     :					Any    =  trie
  for c in word:
   if c not in trie_node:
    snake_case__     :					Dict    =  {}

   snake_case__     :					Union[str, Any]    =  trie_node[c]

  snake_case__     :					Union[str, Any]    =  True

 snake_case__     :					List[Any]    =  len(__magic_name__      )

 # Dynamic programming method
 @functools.cache
 def is_breakable(__magic_name__  :   int      ) -> bool:
  if index == len_string:
   return True

  snake_case__     :					Optional[Any]    =  trie
  for i in range(__magic_name__		,       __magic_name__      ):
   snake_case__     :					Tuple    =  trie_node.get(string[i]		,       __magic_name__      )

   if trie_node is None:
    return False

   if trie_node.get(__magic_name__		,       __magic_name__      ) and is_breakable(i + 1      ):
    return True

  return False

 return is_breakable(0      )


if __name__ == "__main__":
    import doctest

    doctest.testmod()









"""simple docstring"""






# Function to print upper half of diamond (pyramid)


def      _lowercase							(    __snake_case      )		->  Dict:
			for i in range(0   ,__snake_case      ):
						for _ in range(0   ,n - i - 1      ):  # printing spaces
									print(" "   ,end=""      )
						for _ in range(0   ,i + 1      ):  # printing stars
									print("* "   ,end=""      )
						print()


def      _lowercase							(    __snake_case      )		->  Tuple:
			for i in range(__snake_case   ,0   ,-1      ):
						for _ in range(__snake_case   ,0   ,-1      ):  # printing stars
									print("* "   ,end=""      )
						print()
						for _ in range(n - i + 1   ,0   ,-1      ):  # printing spaces
									print(" "   ,end=""      )


def      _lowercase							(    __snake_case      )		->  Any:
			if n <= 0:
						print("       ...       ....        nothing printing :("      )
						return
			floyd(__snake_case      )  # upper half
			reverse_floyd(__snake_case      )  # lower half


if __name__ == "__main__":
	print(R'| /\ | |- |  |-  |--| |\  /| |-')
	print(R'|/  \| |- |_ |_  |__| | \/ | |_')
	__snake_case				:  Tuple =       1
	while K:
		__snake_case				:  List[str] =       int(input('enter the number and , and see the magic : '))
		print()
		pretty_print(user_number)
		__snake_case				:  Optional[Any] =       int(input('press 0 to exit... and 1 to continue...'))

	print('Good Bye...')