


"""simple docstring"""
__SCREAMING_SNAKE_CASE							:    Tuple		=    0  # The first color of the flag.
__SCREAMING_SNAKE_CASE							:    Optional[int]		=    1  # The second color of the flag.
__SCREAMING_SNAKE_CASE							:    str		=    2  # The third color of the flag.
__SCREAMING_SNAKE_CASE							:    Optional[int]		=    (red, white, blue)







def 						_a				(      _SCREAMING_SNAKE_CASE				)    ->				list:
							if not sequence:
														return []
							if len(_SCREAMING_SNAKE_CASE				) == 1:
														return list(_SCREAMING_SNAKE_CASE				)
							snake_case_           =		0
							snake_case_           =		len(_SCREAMING_SNAKE_CASE				) - 1
							snake_case_           =		0
							while mid <= high:
														if sequence[mid] == colors[0]:
																					snake_case_       ,						snake_case_           =		sequence[mid], sequence[low]
																					low += 1
																					mid += 1
														elif sequence[mid] == colors[1]:
																					mid += 1
														elif sequence[mid] == colors[2]:
																					snake_case_       ,						snake_case_           =		sequence[high], sequence[mid]
																					high -= 1
														else:
																					snake_case_           =		f"""The elements inside the sequence must contains only {colors} values"""
																					raise ValueError(_SCREAMING_SNAKE_CASE				)
							return sequence


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				__SCREAMING_SNAKE_CASE							:    List[str]		=    input('Enter numbers separated by commas:\n').strip()
				__SCREAMING_SNAKE_CASE							:    str		=    [int(item.strip()) for item in user_input.split(',')]
				print(f"""{dutch_national_flag_sort(unsorted)}""")







"""simple docstring"""
from math import factorial







def 						_a				(      _SCREAMING_SNAKE_CASE = 100				)    ->				int:
							return sum(int(_SCREAMING_SNAKE_CASE				) for x in str(factorial(_SCREAMING_SNAKE_CASE				)				)				)


if __name__ == "__main__":
				print(solution(int(input('Enter the Number: ').strip())))



