





'''simple docstring'''


from __future__ import annotations

from numpy import array, cos, cross, floataa, radians, sin
from numpy.typing import NDArray


def 						__a(SCREAMING_SNAKE_CASE_	:       float		,							SCREAMING_SNAKE_CASE_	:       float		,							SCREAMING_SNAKE_CASE_	:       bool = False     ):



    '''simple docstring'''





    if radian_mode:
        return [magnitude * cos(SCREAMING_SNAKE_CASE_     ), magnitude * sin(SCREAMING_SNAKE_CASE_     )]
    return [magnitude * cos(radians(SCREAMING_SNAKE_CASE_     )     ), magnitude * sin(radians(SCREAMING_SNAKE_CASE_     )     )]


def 						__a(SCREAMING_SNAKE_CASE_	:       NDArray[floataa]		,							SCREAMING_SNAKE_CASE_	:       NDArray[floataa]		,							SCREAMING_SNAKE_CASE_	:       float = 10**-1     ):



    '''simple docstring'''





    _lowerCAmelCase						      =   cross(SCREAMING_SNAKE_CASE_		,							SCREAMING_SNAKE_CASE_     )
    _lowerCAmelCase						      =   sum(SCREAMING_SNAKE_CASE_     )
    return abs(SCREAMING_SNAKE_CASE_     ) < eps


if __name__ == "__main__":
       # Test to check if it works
       _SCREAMING_SNAKE_CASE									=				array(
           [
               polar_force(718.4, 1_80 - 30),
               polar_force(879.54, 45),
               polar_force(1_00, -90),
           ]
       )

       _SCREAMING_SNAKE_CASE									=				array([[0, 0], [0, 0], [0, 0]])

       assert in_static_equilibrium(forces, location)

       # Problem 1 in image_data/2D_problems.jpg
       _SCREAMING_SNAKE_CASE									=				array(
           [
               polar_force(30 * 9.81, 15),
               polar_force(2_15, 1_80 - 45),
               polar_force(2_64, 90 - 30),
           ]
       )

       _SCREAMING_SNAKE_CASE									=				array([[0, 0], [0, 0], [0, 0]])

       assert in_static_equilibrium(forces, location)

       # Problem in image_data/2D_problems_1.jpg
       _SCREAMING_SNAKE_CASE									=				array([[0, -20_00], [0, -12_00], [0, 1_56_00], [0, -1_24_00]])

       _SCREAMING_SNAKE_CASE									=				array([[0, 0], [6, 0], [10, 0], [12, 0]])

       assert in_static_equilibrium(forces, location)

       import doctest

       doctest.testmod()






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

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


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



