
"""simple docstring"""





import re







def       __a	(						__lowerCamelCase    ):
   def docstring_decorator(__lowerCamelCase    ):
      UpperCAmelCase_   :   str     	=       fn.__doc__
      UpperCAmelCase_   :   List[Any]     	=       func_doc.split("\n"    )
      UpperCAmelCase_   :   str     	=       0
      while i < len(__lowerCamelCase    ) and re.search(r"^\s*Examples?:\s*$",						lines[i]    ) is None:
         i += 1
      if i < len(__lowerCamelCase    ):
         UpperCAmelCase_   :   Optional[Any]     	=       example_docstring
         UpperCAmelCase_   :   Union[str, Any]     	=       "\n".join(__lowerCamelCase    )
      else:
         raise ValueError(
             f"""The function {fn} should have an empty 'Examples:' in its docstring as placeholder, """
             f"""current docstring is:\n{func_doc}"""    )
      UpperCAmelCase_   :   str     	=       func_doc
      return fn

   return docstring_decorator




"""simple docstring"""





def       __a	(						__lowerCamelCase    ):
   for i, _ in enumerate(__lowerCamelCase    ):
      if (i % 2 == 1) == (nums[i - 1] > nums[i]):
         UpperCAmelCase_	,  UpperCAmelCase_   :   List[Any]     	=       nums[i], nums[i - 1]

   return nums


if __name__ == "__main__":
    print('Enter the array elements:')
    _a									=				list(map(int, input().split()))
    print('The unsorted array is:')
    print(array)
    print('Array after Wiggle sort:')
    print(wiggle_sort(array))


