def      lowercase_							(     _lowerCamelCase				:			list):
    for i, _ in enumerate(_lowerCamelCase):
        if (i % 2 == 1) == (nums[i - 1] > nums[i]):
            lowercase__   ,  lowercase__					:  Optional[Any]          =							nums[i], nums[i - 1]

    return nums


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




def      lowercase_							(     _lowerCamelCase				:			str):
    lowercase__					:  Union[str, Any]          =							0
    for plain_chr in plain_text:
        lowercase__					:  Union[str, Any]          =							(
            ord(_lowerCamelCase) + (hash_value << 6) + (hash_value << 16) - hash_value
        )
    return hash_value



