




import math




class        snake_case__				:
				"""simple docstring"""



				def __init__( self							:	Union[str, Any]   , __lowerCamelCase							:	Union[str, Any]   , __lowerCamelCase							:	Optional[Any]   , __lowerCamelCase							:	Optional[Any]				)   ->	List[str]:
							a       =     x
							a       =     y
							a       =     z





				def __repr__( self							:	Any				)   ->	str:
							return f"""Point({self.x}, {self.y}, {self.z})"""




def      __magic_name__							(					A						:   Tuple,    A						:   List[str]  ):






			'''simple docstring'''







			return math.sqrt(abs((b.x - a.x) ** 2 + (b.y - a.y) ** 2 + (b.z - a.z) ** 2  )  )


if __name__ == "__main__":
		import doctest

		doctest.testmod()











"""simple docstring"""







def 	lowerCAmelCase__      (  lowerCamelCase__      )			->				list:
							for i, _ in enumerate(lowerCamelCase__      ):
														if (i % 2 == 1) == (nums[i - 1] > nums[i]):
																					A   ,	A    =       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))



