"""simple docstring"""






def   a_						(					lowerCamelCase       ):
				UpperCAmelCase__             =							False
				while is_sorted is False:  # Until all the indices are traversed keep looping
								UpperCAmelCase__             =							True
								for i in range(0					,			len(lowerCamelCase       ) - 1					,			2       ):  # iterating over all even indices
												if input_list[i] > input_list[i + 1]:
																UpperCAmelCase__      ,	UpperCAmelCase__             =							input_list[i + 1], input_list[i]
																# swapping if elements not in order
																UpperCAmelCase__             =							False

								for i in range(1					,			len(lowerCamelCase       ) - 1					,			2       ):  # iterating over all odd indices
												if input_list[i] > input_list[i + 1]:
																UpperCAmelCase__      ,	UpperCAmelCase__             =							input_list[i + 1], input_list[i]
																# swapping if elements not in order
																UpperCAmelCase__             =							False
				return input_list


if __name__ == "__main__":
						print('Enter list to be sorted')
						lowerCAmelCase__  :  Dict						     =	[int(x) for x in input().split()]
						# inputing elements of the list in one line
						lowerCAmelCase__  :  List[Any]						     =	odd_even_sort(input_list)
						print('The sorted list is')
						print(sorted_list)










import re
from pathlib import Path
from unittest import TestCase

import pytest






@pytest.mark.integration
class     lowercase__       (	__lowerCamelCase				):

   '''simple docstring'''


   def       UpperCamelCase__  (    self,		__magic_name__							) ->      Union[str, Any]:






       """simple docstring"""

       with open(__magic_name__,		encoding='''utf-8'''							) as input_file:
           UpperCamelCase__							:				Tuple          =      re.compile(R'''(?!.*\b(?:encoding|rb|w|wb|w+|wb+|ab|ab+)\b)(?<=\s)(open)\((.*)\)'''							)
           UpperCamelCase__							:				str          =      input_file.read()
           UpperCamelCase__							:				List[Any]          =      regexp.search(__magic_name__							)

       return match




   def       UpperCamelCase__  (    self,		__magic_name__							) ->      Any:






       """simple docstring"""

       with open(__magic_name__,		encoding='''utf-8'''							) as input_file:
           UpperCamelCase__							:				Dict          =      re.compile(R'''#[^\r\n]*print\(|\"[^\r\n]*print\(|\"\"\".*?print\(.*?\"\"\"|(print\()''',		re.DOTALL							)
           UpperCamelCase__							:				Any          =      input_file.read()
           # use `re.finditer` to handle the case where the ignored groups would be matched first by `re.search`
           UpperCamelCase__							:				Tuple          =      regexp.finditer(__magic_name__							)

       UpperCamelCase__							:				Dict          =      [match for match in matches if match is not None and match.group(1							) is not None]
       return matches[0] if matches else None




   def       UpperCamelCase__  (    self							) ->      List[Any]:






       """simple docstring"""
       UpperCamelCase__							:				int          =      Path('''./datasets'''							)
       UpperCamelCase__							:				Any          =      list(dataset_paths.absolute().glob('''**/*.py'''							)							)

       for dataset in dataset_files:
           if self._no_encoding_on_file_open(str(__magic_name__							)							):
               raise AssertionError(f"open(...) must use utf-8 encoding in {dataset}"							)




   def       UpperCamelCase__  (    self							) ->      Dict:






       """simple docstring"""
       UpperCamelCase__							:				Optional[int]          =      Path('''./datasets'''							)
       UpperCamelCase__							:				Optional[Any]          =      list(dataset_paths.absolute().glob('''**/*.py'''							)							)

       for dataset in dataset_files:
           if self._no_print_statements(str(__magic_name__							)							):
               raise AssertionError(f"print statement found in {dataset}. Use datasets.logger/logging instead."							)

