






'''simple docstring'''






def 							_SCREAMING_SNAKE_CASE	(					A	:							list	)     ->			list:







   """simple docstring"""
   for i, _ in enumerate(A	):
      if (i % 2 == 1) == (nums[i - 1] > nums[i]):
         __snake_case				,__snake_case					:   Optional[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))







'''simple docstring'''






def 							_SCREAMING_SNAKE_CASE	(					)     ->			int:







   """simple docstring"""

   for a in range(3_00	):
      for b in range(a + 1	,		4_00	):
         for c in range(b + 1	,		5_00	):
            if (a + b + c) == 10_00 and (a**2) + (b**2) == (c**2):
               return a * b * c

   return -1




def 							_SCREAMING_SNAKE_CASE	(					)     ->			int:







   """simple docstring"""

   for a in range(3_00	):
      for b in range(4_00	):
         __snake_case					:   Optional[Any]  				=			10_00 - a - b
         if a < b < c and (a**2) + (b**2) == (c**2):
            return a * b * c

   return -1




def 							_SCREAMING_SNAKE_CASE	(					)     ->			None:







   """simple docstring"""
   import timeit

   print(
       timeit.timeit('solution()'	,		setup='from __main__ import solution'	,		number=10_00	)	)
   print(
       timeit.timeit(
           'solution_fast()'	,		setup='from __main__ import solution_fast'	,		number=10_00	)	)


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