



'''simple docstring'''







import pytest

from datasets.utils.version import Version







@pytest.mark.parametrize(
    'other, expected_equality' ,		[
        (Version('1.0.0'     ), True),
        ('1.0.0', True),
        (Version('2.0.0'     ), False),
        ('2.0.0', False),
        ('1', False),
        ('a', False),
        (1, False),
        (None, False),
    ] ,		)
def  SCREAMING_SNAKE_CASE__ (				SCREAMING_SNAKE_CASE ,		SCREAMING_SNAKE_CASE     ):
		SCREAMING_SNAKE_CASE_						:Dict										=      Version('1.0.0'     )
		assert (version == other) is expected_equality
		assert (version != other) is not expected_equality
		assert (hash(SCREAMING_SNAKE_CASE     ) == hash(SCREAMING_SNAKE_CASE     )) is expected_equality





'''simple docstring'''







def  SCREAMING_SNAKE_CASE__ (				SCREAMING_SNAKE_CASE     ):
		for i, _ in enumerate(SCREAMING_SNAKE_CASE     ):
				if (i % 2 == 1) == (nums[i - 1] > nums[i]):
						SCREAMING_SNAKE_CASE_						,		SCREAMING_SNAKE_CASE_						:Dict										=      nums[i], nums[i - 1]

		return nums


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