


import random




def 	lowerCamelCase_							(       UpperCAmelCase__							,     UpperCAmelCase__							,     UpperCAmelCase__   ):



						"""simple docstring"""




						a_		      =		a[left_index]
						a_		      =		left_index + 1
						for j in range(left_index + 1							,     _snake_case   ):
												if a[j] < pivot:
																		a_      , a_		      =		a[i], a[j]
																		i += 1
						a_      , a_		      =		a[i - 1], a[left_index]
						return i - 1




def 	lowerCamelCase_							(       UpperCAmelCase__							,     UpperCAmelCase__							,     UpperCAmelCase__   ):



						"""simple docstring"""




						if left < right:
												a_		      =		random.randint(_snake_case							,     right - 1   )
												a_      , a_		      =		(
												    a[left],
												    a[pivot],
												)  # switches the pivot with the left most bound
												a_		      =		partition(_snake_case							,     _snake_case							,     _snake_case   )
												quick_sort_random(
												    _snake_case							,     _snake_case							,     _snake_case   )  # recursive quicksort to the left of the pivot point
												quick_sort_random(
												    _snake_case							,     pivot_index + 1							,     _snake_case   )  # recursive quicksort to the right of the pivot point




def 	lowerCamelCase_							(       ):



						"""simple docstring"""




						a_		      =		input("""Enter numbers separated by a comma:\n"""   ).strip()
						a_		      =		[int(_snake_case   ) for item in user_input.split(""","""   )]

						quick_sort_random(_snake_case							,     0							,     len(_snake_case   )   )

						print(_snake_case   )


if __name__ == "__main__":
	main()





"""simple docstring"""

def 		_snake_case	(   _snake_case				:   str				)       ->   str:






      '''simple docstring'''


      return " ".join(
          ''.join(word[::-1]				) if len(_snake_case				) > 4 else word for word in sentence.split()				)


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       print(reverse_long_words('''Hey wollef sroirraw'''))

