




def        __SCREAMING_SNAKE_CASE (	lowercase_   )							->						Optional[Any]:

    """simple docstring"""


    for i, _ in enumerate(A__   ):
        if (i % 2 == 1) == (nums[i - 1] > nums[i]):
            __UpperCamelCase			=    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))










def 	A (		A__			):
     UpperCAmelCase    :					Dict			=      9

     while num > 0:
          if num % 1_0 != digit:
               return False
          num //= 1_0_0
          digit -= 1

     return True







def 	A (		):
     UpperCAmelCase    :					Optional[Any]			=      1_3_8_9_0_2_6_6_3

     while not is_square_form(num * num			):
          if num % 1_0 == 3:
               num -= 6  # (3 - 6) % 10 = 7
          else:
               num -= 4  # (7 - 4) % 10 = 3

     return num * 1_0


if __name__ == "__main__":
      print(f'''{solution() = }''')



