



import os
from distutils.util import strtobool

def        __a			(   __lowerCAmelCase      ,	__lowerCAmelCase   )     ->     Tuple:
					for e in env_keys:
										SCREAMING_SNAKE_CASE							:     int						=				int(os.environ.get(__lowerCAmelCase      ,	-1   )   )
										if val >= 0:
															return val
					return default

def        __a			(   __lowerCAmelCase      ,	__lowerCAmelCase=False   )     ->     int:
					SCREAMING_SNAKE_CASE							:     Dict						=				os.environ.get(__lowerCAmelCase      ,	str(__lowerCAmelCase   )   )
					return strtobool(__lowerCAmelCase   ) == 1  # As its name indicates `strtobool` actually returns an int...



def        __a			(   __lowerCAmelCase      ,	__lowerCAmelCase="no"   )     ->     Dict:
					SCREAMING_SNAKE_CASE							:     Optional[int]						=				os.environ.get(__lowerCAmelCase      ,	str(__lowerCAmelCase   )   )
					return value




def        __a			(   __lowerCAmelCase   )     ->     List[str]:
					stooge(__lowerCAmelCase      ,	0      ,	len(__lowerCAmelCase   ) - 1   )
					return arr

def        __a			(   __lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase   )     ->     int:
					if i >= h:
										return

					# If first element is smaller than the last then swap them
					if arr[i] > arr[h]:
										SCREAMING_SNAKE_CASE					,  SCREAMING_SNAKE_CASE							:     Any						=				arr[h], arr[i]

					# If there are more than 2 elements in the array
					if h - i + 1 > 2:
										SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				(int)((h - i + 1) / 3   )

										# Recursively sort first 2/3 elements
										stooge(__lowerCAmelCase      ,	__lowerCAmelCase      ,	(h - t)   )

										# Recursively sort last 2/3 elements
										stooge(__lowerCAmelCase      ,	i + t      ,	(__lowerCAmelCase)   )

										# Recursively sort first 2/3 elements
										stooge(__lowerCAmelCase      ,	__lowerCAmelCase      ,	(h - t)   )


if __name__ == "__main__":
			_lowerCamelCase    :		List[str]		      =    input("""Enter numbers separated by a comma:\n""").strip()
			_lowerCamelCase    :		List[Any]		      =    [int(item) for item in user_input.split(""",""")]
			print(stooge_sort(unsorted))