

def 				A_					(							a					):

      """simple docstring"""



      for i, _ in enumerate(a					):
            if (i % 2 == 1) == (nums[i - 1] > nums[i]):
                  SCREAMING_SNAKE_CASE_    ,  SCREAMING_SNAKE_CASE_			:					int          =       nums[i], nums[i - 1]

      return nums


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









from typing import TYPE_CHECKING

from ...utils import _LazyModule


lowerCAmelCase       :				Tuple         =					{'tokenization_phobert': ['PhobertTokenizer']}


if TYPE_CHECKING:
    from .tokenization_phobert import PhobertTokenizer

else:
    import sys

    lowerCAmelCase       :				Optional[int]         =					_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)






