


"""simple docstring"""






from math import sqrt



def 			A__		(					_UpperCAmelCase    :      int	)							->	list[int]:

	'''simple docstring'''


	snake_case__  :						List[Any]		=      [1]
	for i in range(2				,    int(sqrt(_UpperCAmelCase	)	) + 1				,    1	):
		if number % i == 0:
			values.append(_UpperCAmelCase	)
			if int(number // i	) != i:
				values.append(int(number // i	)	)
	return sorted(_UpperCAmelCase	)



def 			A__		(					_UpperCAmelCase    :      int	)							->	bool:

	'''simple docstring'''


	return sum(factors(_UpperCAmelCase	)	) > n



def 			A__		(					_UpperCAmelCase    :      int	)							->	bool:

	'''simple docstring'''


	snake_case__  :						Any		=      factors(_UpperCAmelCase	)
	snake_case__  :						int		=      len(_UpperCAmelCase	)
	snake_case__  :						List[Any]		=      [[0 for i in range(number + 1	)] for j in range(r + 1	)]
	for i in range(r + 1	):
		snake_case__  :						Optional[int]		=      True

	for i in range(1				,    number + 1	):
		snake_case__  :						str		=      False

	for i in range(1				,    r + 1	):
		for j in range(1				,    number + 1	):
			if j < values[i - 1]:
				snake_case__  :						Optional[Any]		=      subset[i - 1][j]
			else:
				snake_case__  :						str		=      subset[i - 1][j] or subset[i - 1][j - values[i - 1]]

	return subset[r][number] != 0



def 			A__		(					_UpperCAmelCase    :      int	)							->	bool:

	'''simple docstring'''


	return abundant(_UpperCAmelCase	) and not semi_perfect(_UpperCAmelCase	)


if __name__ == "__main__":
					import doctest

					doctest.testmod(verbose=True)
					for number in (69, 70, 71):
										print(f"{number} is {'' if weird(number) else 'not '}weird.")









"""simple docstring"""






def 			A__		(					_UpperCAmelCase    :      str	)							->	list:

	'''simple docstring'''


	snake_case__  :						Any		=      []
	snake_case__  :						List[Any]		=      1

	for i in range(len(_UpperCAmelCase	)	):
		if i + 1 < len(_UpperCAmelCase	) and text[i] == text[i + 1]:
			count += 1
		else:
			encoded.append((text[i], count)	)
			snake_case__  :						Dict		=      1

	return encoded



def 			A__		(					_UpperCAmelCase    :      list	)							->	str:

	'''simple docstring'''


	return "".join(char * length for char, length in encoded	)


if __name__ == "__main__":
					from doctest import testmod

					testmod(name="""run_length_encode""", verbose=True)
					testmod(name="""run_length_decode""", verbose=True)





