






"""simple docstring"""



from __future__ import annotations

_UpperCamelCase		:  List[str]						=		'#'

class        a     :







    def __init__(			self       ):
      lowercase							    =       {}







    def 			UpperCamelCase_      (			self							,		_lowerCamelCase       ):
      lowercase							    =       self._trie
      for char in text:
        if char not in trie:
          lowercase							    =       {}
        lowercase							    =       trie[char]
      lowercase							    =       True







    def 			UpperCamelCase_      (			self							,		_lowerCamelCase       ):
      lowercase							    =       self._trie
      for char in prefix:
        if char in trie:
          lowercase							    =       trie[char]
        else:
          return []
      return self._elements(_lowerCamelCase       )







    def 			UpperCamelCase_      (			self							,		_lowerCamelCase       ):
      lowercase							    =       []
      for c, v in d.items():
        lowercase							    =       [' '] if c == END else [(c + s) for s in self._elements(_lowerCamelCase       )]
        result.extend(_lowerCamelCase       )
      return tuple(_lowerCamelCase       )


_UpperCamelCase		:  Optional[Any]						=		Trie()
_UpperCamelCase		:  Optional[Any]						=		('depart', 'detergent', 'daring', 'dog', 'deer', 'deal')
for word in words:
    trie.insert_word(word)
def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  str    ):





  '''simple docstring'''





  lowercase							    =       trie.find_word(__snake_case    )
  return tuple(string + word for word in suffixes    )
def 						_SCREAMING_SNAKE_CASE (    ):





  '''simple docstring'''





  print(autocomplete_using_trie('de'    )    )


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()










"""simple docstring"""



def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  int    ):





  '''simple docstring'''





  return sum(i for i in range(1		,					number // 2 + 1    ) if number % i == 0    ) == number


if __name__ == "__main__":
    print('Program to check whether a number is a Perfect number or not...')
    _UpperCamelCase		:  Tuple						=		int(input('Enter number: ').strip())
    print(F'''{number} is {'' if perfect(number) else 'not '}a Perfect Number.''')


