

from math import sqrt


def 							__lowercase     (	UpperCAmelCase__   ):

					"""simple docstring"""






					__lowerCAmelCase       =				[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 							__lowercase     (	UpperCAmelCase__   ):

					"""simple docstring"""






					return sum(factors(UpperCAmelCase__   )   ) > n


def 							__lowercase     (	UpperCAmelCase__   ):

					"""simple docstring"""






					__lowerCAmelCase       =				factors(UpperCAmelCase__   )
					__lowerCAmelCase       =				len(UpperCAmelCase__   )
					__lowerCAmelCase       =				[[0 for i in range(number + 1   )] for j in range(r + 1   )]
					for i in range(r + 1   ):
										__lowerCAmelCase       =				True

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

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

					return subset[r][number] != 0


def 							__lowercase     (	UpperCAmelCase__   ):

					"""simple docstring"""






					return abundant(UpperCAmelCase__   ) and not semi_perfect(UpperCAmelCase__   )


if __name__ == "__main__":
		import doctest

		doctest.testmod(verbose=True)
		for number in (6_9, 7_0, 7_1):
				print(F'''{number} is {"" if weird(number) else "not "}weird.''')









import random


def 							__lowercase     (	UpperCAmelCase__   ):

					"""simple docstring"""






					def is_sorted(UpperCAmelCase__   ):
										for i in range(len(UpperCAmelCase__   ) - 1   ):
															if collection[i] > collection[i + 1]:
																				return False
										return True

					while not is_sorted(UpperCAmelCase__   ):
										random.shuffle(UpperCAmelCase__   )
					return collection


if __name__ == "__main__":
		lowerCamelCase   					=  input('''Enter numbers separated by a comma:\n''').strip()
		lowerCamelCase   					=  [int(item) for item in user_input.split(''',''')]
		print(bogo_sort(unsorted))






