






from __future__ import annotations






def 					lowerCamelCase__					(_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase):
			if (direction == 1 and array[indexa] > array[indexa]) or (
			    direction == 0 and array[indexa] < array[indexa]
			):
						SCREAMING_SNAKE_CASE					,    SCREAMING_SNAKE_CASE							=			array[indexa], array[indexa]






def 					lowerCamelCase__					(_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase):
			if length > 1:
						SCREAMING_SNAKE_CASE							=			int(length / 2)
						for i in range(_UpperCAmelCase				,							low + middle):
									comp_and_swap(_UpperCAmelCase				,							_UpperCAmelCase				,							i + middle				,							_UpperCAmelCase)
						bitonic_merge(_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase)
						bitonic_merge(_UpperCAmelCase				,							low + middle				,							_UpperCAmelCase				,							_UpperCAmelCase)






def 					lowerCamelCase__					(_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase):
			if length > 1:
						SCREAMING_SNAKE_CASE							=			int(length / 2)
						bitonic_sort(_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase				,							1)
						bitonic_sort(_UpperCAmelCase				,							low + middle				,							_UpperCAmelCase				,							0)
						bitonic_merge(_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase				,							_UpperCAmelCase)


if __name__ == "__main__":
				a_		:    List[Any]   							=     input('Enter numbers separated by a comma:\n').strip()
				a_		:    str   							=     [int(item.strip()) for item in user_input.split(',')]

				bitonic_sort(unsorted, 0, len(unsorted), 1)
				print('\nSorted array in ascending order is: ', end='')
				print(*unsorted, sep=', ')

				bitonic_merge(unsorted, 0, len(unsorted), 0)
				print('Sorted array in descending order is: ', end='')
				print(*unsorted, sep=', ')











"""simple docstring"""


import os

def      UpperCamelCase							():
						UpperCamelCase				:		Union[str, Any]				   =			os.path.join(os.path.dirname(SCREAMING_SNAKE_CASE     )							,     """num.txt"""     )
						with open(SCREAMING_SNAKE_CASE     ) as file_hand:
												return str(sum(int(SCREAMING_SNAKE_CASE     ) for line in file_hand     )     )[:10]


if __name__ == "__main__":
		print(solution())



