



def       UpperCamelCase(  __UpperCamelCase							:		str			):
		return "".join(chr(ord(__UpperCamelCase			) + 32			) if '''A''' <= char <= '''Z''' else char for char in word			)


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

						testmod()










def       UpperCamelCase(  __UpperCamelCase							:		list			):
		for i, _ in enumerate(__UpperCamelCase			):
				if (i % 2 == 1) == (nums[i - 1] > nums[i]):
						lowerCAmelCase_ ,  lowerCAmelCase_      :					Union[str, Any]     =			nums[i], nums[i - 1]

		return nums


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





