





def 			lowerCamelCase__	(__lowerCamelCase		):
     for i, _ in enumerate(__lowerCamelCase		):
          if (i % 2 == 1) == (nums[i - 1] > nums[i]):
               _SCREAMING_SNAKE_CASE			,	_SCREAMING_SNAKE_CASE				:		Any  			=							nums[i], nums[i - 1]

     return nums


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

from math import cos, sin







def 				A__    (  lowerCamelCase  )     ->		list[list[float]]:
				UpperCamelCase_:							int		=  float(lowerCamelCase  )
				return [[scaling_factor * int(x == y  ) for x in range(2  )] for y in range(2  )]







def 				A__    (  lowerCamelCase  )     ->		list[list[float]]:
				UpperCamelCase_,      UpperCamelCase_:							Union[str, Any]		=  cos(lowerCamelCase  ), sin(lowerCamelCase  )
				return [[c, -s], [s, c]]







def 				A__    (  lowerCamelCase  )     ->		list[list[float]]:
				UpperCamelCase_,      UpperCamelCase_:							Any		=  cos(lowerCamelCase  ), sin(lowerCamelCase  )
				UpperCamelCase_:							List[Any]		=  c * s
				return [[c * c, cs], [cs, s * s]]







def 				A__    (  lowerCamelCase  )     ->		list[list[float]]:
				UpperCamelCase_,      UpperCamelCase_:							List[str]		=  cos(lowerCamelCase  ), sin(lowerCamelCase  )
				UpperCamelCase_:							int		=  c * s
				return [[2 * c - 1, 2 * cs], [2 * cs, 2 * s - 1]]


print(F"""    {scaling(5) = }""")
print(F"""  {rotation(45) = }""")
print(F"""{projection(45) = }""")





print(F"""{reflection(45) = }""")






