



from datetime import datetime

import matplotlib.pyplot as plt
import torch






def 					__lowerCAmelCase		(  __lowerCamelCase	:    Tuple	)  ->						Union[str, Any]:
					for param in module.parameters():
										__lowerCAmelCase	   =False






def 					__lowerCAmelCase		(  )  ->						List[str]:
					__lowerCAmelCase	   ="""cuda""" if torch.cuda.is_available() else """cpu"""
					if torch.backends.mps.is_available() and torch.backends.mps.is_built():
										__lowerCAmelCase	   ="""mps"""
					if device == "mps":
										print(
										    """WARNING: MPS currently doesn't seem to work, and messes up backpropagation without any visible torch"""
										    """ errors. I recommend using CUDA on a colab notebook or CPU instead if you're facing inexplicable issues"""
										    """ with generations."""	)
					return device






def 					__lowerCAmelCase		(  __lowerCamelCase	:    Optional[Any]	)  ->						str:
					__lowerCAmelCase	   =plt.imshow(__lowerCamelCase	)
					fig.axes.get_xaxis().set_visible(__lowerCamelCase	)
					fig.axes.get_yaxis().set_visible(__lowerCamelCase	)
					plt.show()






def 					__lowerCAmelCase		(  )  ->						Dict:
					__lowerCAmelCase	   =datetime.now()
					__lowerCAmelCase	   =current_time.strftime("""%H:%M:%S"""	)
					return timestamp









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

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


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




