



def 					__lowerCAmelCase		(  __lowerCamelCase	:    str	)  ->						bool:
					if not isinstance(SCREAMING_SNAKE_CASE_				,   SCREAMING_SNAKE_CASE_	):
										__lowerCAmelCase	   =f"""Input value of [number={number}] must be an integer"""
										raise TypeError(SCREAMING_SNAKE_CASE_	)
					if number < 0:
										return False
					__lowerCAmelCase	   =number * number
					while number > 0:
										if number % 10 != number_square % 10:
															return False
										number //= 10
										number_square //= 10
					return True


if __name__ == "__main__":
				import doctest

				doctest.testmod()









def 					__lowerCAmelCase		(  __lowerCamelCase	:    list	)  ->						list:
					if len(__lowerCamelCase	) <= 1:
										return lst

					__lowerCAmelCase	   =1

					while i < len(__lowerCamelCase	):
										if lst[i - 1] <= lst[i]:
															i += 1
										else:
															__lowerCAmelCase   ,	__lowerCAmelCase	   =lst[i], lst[i - 1]
															i -= 1
															if i == 0:
																				__lowerCAmelCase	   =1

					return lst


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




