
def 							__SCREAMING_SNAKE_CASE       (		SCREAMING_SNAKE_CASE	:				list      )					->						list:
				for i, _ in enumerate(SCREAMING_SNAKE_CASE      ):
								if (i % 2 == 1) == (nums[i - 1] > nums[i]):
												__lowercase		, __lowercase								= nums[i], nums[i - 1]

				return nums


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







from math import pi




def 							__SCREAMING_SNAKE_CASE       (		SCREAMING_SNAKE_CASE	:				float      )					->						float:
				return degree / (180 / pi)


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

							testmod()





