



'''simple docstring'''







def 						snake_case__ (lowerCAmelCase_	):
    UpperCamelCase__      =			str(lowerCAmelCase_	).strip()
    if not bin_string:
        raise ValueError("Empty string was passed to the function"	)
    UpperCamelCase__      =			bin_string[0] == "-"
    if is_negative:
        UpperCamelCase__      =			bin_string[1:]
    if not all(char in "01" for char in bin_string	):
        raise ValueError("Non-binary value was passed to the function"	)
    UpperCamelCase__      =			0
    for char in bin_string:
        UpperCamelCase__      =			2 * decimal_number + int(lowerCAmelCase_	)
    return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
      from doctest import testmod

      testmod()









'''simple docstring'''







def 						snake_case__ (lowerCAmelCase_	):
    for i, _ in enumerate(lowerCAmelCase_	):
        if (i % 2 == 1) == (nums[i - 1] > nums[i]):
            UpperCamelCase__    ,  UpperCamelCase__      =			nums[i], nums[i - 1]

    return nums


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




