





def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase					):
       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...""")
       lowercase    : Optional[int]    	=  int(input("""Enter number: """).strip())
       print(F'''{number} is {"" if perfect(number) else "not "}a Perfect Number.''')













from __future__ import annotations

from collections.abc import Iterator

class  __A:

     def __init__(      self,       A      ):





            """simple docstring"""

            _UpperCamelCase              =						value
            _UpperCamelCase              =						None
            _UpperCamelCase              =						None






class  __A:

     def __init__(      self,       A      ):





            """simple docstring"""

            _UpperCamelCase              =						tree

     def 	_UpperCamelCase     (      self,       A      ):





            """simple docstring"""

            if node is None:
                   return 0
            return node.value + (
                self.depth_first_search(node.left      ) + self.depth_first_search(node.right      )
            )



     def __iter__(      self      ):





            """simple docstring"""

            yield self.depth_first_search(self.tree      )


if __name__ == "__main__":
       import doctest

       doctest.testmod()






