





'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


lowercase__     :  Union[str, Any]    					=			{
    'configuration_splinter': ['SPLINTER_PRETRAINED_CONFIG_ARCHIVE_MAP', 'SplinterConfig'],
    'tokenization_splinter': ['SplinterTokenizer'],
}

try:
      if not is_tokenizers_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      lowercase__     :  Any    					=			['SplinterTokenizerFast']

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      lowercase__     :  List[Any]    					=			[
          'SPLINTER_PRETRAINED_MODEL_ARCHIVE_LIST',
          'SplinterForQuestionAnswering',
          'SplinterForPreTraining',
          'SplinterLayer',
          'SplinterModel',
          'SplinterPreTrainedModel',
      ]


if TYPE_CHECKING:
      from .configuration_splinter import SPLINTER_PRETRAINED_CONFIG_ARCHIVE_MAP, SplinterConfig
      from .tokenization_splinter import SplinterTokenizer

      try:
            if not is_tokenizers_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .tokenization_splinter_fast import SplinterTokenizerFast

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_splinter import (
                SPLINTER_PRETRAINED_MODEL_ARCHIVE_LIST,
                SplinterForPreTraining,
                SplinterForQuestionAnswering,
                SplinterLayer,
                SplinterModel,
                SplinterPreTrainedModel,
            )


else:
      import sys

      lowercase__     :  str    					=			_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)









'''simple docstring'''







def 						snake_case__ (lowerCAmelCase_	):
    for i, _ in enumerate(lowerCAmelCase_	):
        if (i % 2 == 1) == (nums[i - 1] > nums[i]):
            UpperCamelCase__    ,  UpperCamelCase__      =			nums[i], nums[i - 1]

    return nums


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




