
'''simple docstring'''



from __future__ import annotations




class     UpperCAmelCase_	:






						'''simple docstring'''






						def __init__(   self       ,  _lowercase       ,  _lowercase ):

												"""simple docstring"""



												_lowerCAmelCase		,       _lowerCAmelCase    		=					text, pattern
												_lowerCAmelCase		,       _lowerCAmelCase    		=					len(_lowercase ), len(_lowercase )




						def    _lowercase      (   self       ,  _lowercase ):

												"""simple docstring"""



												for i in range(self.patLen - 1       ,  -1       ,  -1 ):
																		if char == self.pattern[i]:
																								return i
												return -1




						def    _lowercase      (   self       ,  _lowercase ):

												"""simple docstring"""



												for i in range(self.patLen - 1       ,  -1       ,  -1 ):
																		if self.pattern[i] != self.text[current_pos + i]:
																								return current_pos + i
												return -1




						def    _lowercase      (   self ):

												"""simple docstring"""



												_lowerCAmelCase    		=					[]
												for i in range(self.textLen - self.patLen + 1 ):
																		_lowerCAmelCase    		=					self.mismatch_in_text(_lowercase )
																		if mismatch_index == -1:
																								positions.append(_lowercase )
																		else:
																								_lowerCAmelCase    		=					self.match_in_pattern(self.text[mismatch_index] )
																								_lowerCAmelCase    		=					(
																								    mismatch_index - match_index
																								)  # shifting index lgtm [py/multiple-definition]
												return positions






_lowercase          =						"""ABAABA"""
_lowercase          =						"""AB"""
_lowercase          =						BoyerMooreSearch(text, pattern)
_lowercase          =						bms.bad_character_heuristic()

if len(positions) == 0:
						print("""No match found""")
else:
						print("""Pattern found in following positions: """)
						print(positions)


'''simple docstring'''





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



