






"""simple docstring"""



def 						_SCREAMING_SNAKE_CASE (    __snake_case			:  int		,					__snake_case			:  List[str]		,					__snake_case			:  Optional[Any]=False    ):





  '''simple docstring'''





  if isinstance(__snake_case		,					__snake_case    ) and isinstance(__snake_case		,					__snake_case    ):
    lowercase							    =       len(set_a.intersection(__snake_case    )    )

    if alternative_union:
      lowercase							    =       len(__snake_case    ) + len(__snake_case    )
    else:
      lowercase							    =       len(set_a.union(__snake_case    )    )

    return intersection / union

  if isinstance(__snake_case		,					(list, tuple)    ) and isinstance(__snake_case		,					(list, tuple)    ):
    lowercase							    =       [element for element in set_a if element in set_b]

    if alternative_union:
      lowercase							    =       len(__snake_case    ) + len(__snake_case    )
      return len(__snake_case    ) / union
    else:
      lowercase							    =       set_a + [element for element in set_b if element not in set_a]
      return len(__snake_case    ) / len(__snake_case    )

    return len(__snake_case    ) / len(__snake_case    )
  return None


if __name__ == "__main__":
    _UpperCamelCase		:  List[Any]						=		{'a', 'b', 'c', 'd', 'e'}
    _UpperCamelCase		:  Optional[Any]						=		{'c', 'd', 'e', 'f', 'h', 'i'}
    print(jaccard_similarity(set_a, set_b))










"""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.''')


