



def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_     :   str  ):
			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_								=     int(input("""Enter number: """).strip())
							print(F'{number} is {"" if perfect(number) else "not "}a Perfect Number.')









def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_  ):
			lowercase__					  =				0
			for ch in input_str:
						lowercase__					  =				ord(SCREAMING_SNAKE_CASE_  )
						lowercase__					  =				pow(2						,  SCREAMING_SNAKE_CASE_  )

						# If we already turned on bit for current character's unicode
						if bitmap >> ch_unicode & 1 == 1:
									return False
						bitmap |= ch_bit_index_on
			return True


if __name__ == "__main__":
							import doctest

							doctest.testmod()




