

def       __snake_case						( __UpperCamelCase	: Union[str, Any]    ):



      """simple docstring"""

      A_						  =				len(__UpperCamelCase    )
      while cur > 1:
            # Find the maximum number in arr
            A_						  =				arr.index(max(arr[0:cur]    )    )
            # Reverse from 0 to mi
            A_						  =				arr[mi::-1] + arr[mi + 1 : len(__UpperCamelCase    )]
            # Reverse whole list
            A_						  =				arr[cur - 1 :: -1] + arr[cur : len(__UpperCamelCase    )]
            cur -= 1
      return arr


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

def    a      ( a	)     ->List[Any]:




			'''simple docstring'''


			SCREAMING_SNAKE_CASE     						= len(a	)
			while cur > 1:
						# Find the maximum number in arr
						SCREAMING_SNAKE_CASE     						= arr.index(max(arr[0:cur]	)	)
						# Reverse from 0 to mi
						SCREAMING_SNAKE_CASE     						= arr[mi::-1] + arr[mi + 1 : len(a	)]
						# Reverse whole list
						SCREAMING_SNAKE_CASE     						= arr[cur - 1 :: -1] + arr[cur : len(a	)]
						cur -= 1
			return arr


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