





"""simple docstring"""






def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE							)		->       list:






       """simple docstring"""




       if len(SCREAMING_SNAKE_CASE							) <= 1:
              return lst

       _UpperCAmelCase     =     1

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

       return lst


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













"""simple docstring"""






def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE							)		->       list:






       """simple docstring"""




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

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


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






