"""simple docstring"""




def 							SCREAMING_SNAKE_CASE     (			_lowerCamelCase						:       Tuple	)       ->      Any:
  _lowerCAmelCase						:       Optional[int]  			=     len(_lowerCamelCase	)
  while cur > 1:
    # Find the maximum number in arr
    _lowerCAmelCase						:       Any  			=     arr.index(max(arr[0:cur]	)	)
    # Reverse from 0 to mi
    _lowerCAmelCase						:       Union[str, Any]  			=     arr[mi::-1] + arr[mi + 1 : len(_lowerCamelCase	)]
    # Reverse whole list
    _lowerCAmelCase						:       Dict  			=     arr[cur - 1 :: -1] + arr[cur : len(_lowerCamelCase	)]
    cur -= 1
  return arr


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








"""simple docstring"""


def _lowerCamelCase	(		_UpperCamelCase      ):

			'''simple docstring'''




			__lowerCAmelCase				    =			False
			while is_sorted is False:  # Until all the indices are traversed keep looping
						__lowerCAmelCase				    =			True
						for i in range(0    , len(_UpperCamelCase      ) - 1    , 2      ):  # iterating over all even indices
									if input_list[i] > input_list[i + 1]:
												__lowerCAmelCase    ,	__lowerCAmelCase				    =			input_list[i + 1], input_list[i]
												# swapping if elements not in order
												__lowerCAmelCase				    =			False

						for i in range(1    , len(_UpperCamelCase      ) - 1    , 2      ):  # iterating over all odd indices
									if input_list[i] > input_list[i + 1]:
												__lowerCAmelCase    ,	__lowerCAmelCase				    =			input_list[i + 1], input_list[i]
												# swapping if elements not in order
												__lowerCAmelCase				    =			False
			return input_list


if __name__ == "__main__":
	print("Enter list to be sorted")
	A     :   Union[str, Any]			    =			[int(x) for x in input().split()]
	# inputing elements of the list in one line
	A     :   str			    =			odd_even_sort(input_list)
	print("The sorted list is")
	print(sorted_list)




