



'''simple docstring'''

UpperCAmelCase     		=   0  # The first color of the flag.
UpperCAmelCase     		=   1  # The second color of the flag.
UpperCAmelCase     		=   2  # The third color of the flag.
UpperCAmelCase     		=   (red, white, blue)






def 		_snake_case		( _SCREAMING_SNAKE_CASE					:						list							)      ->						list:







	"""simple docstring"""
	if not sequence:
		return []
	if len(_SCREAMING_SNAKE_CASE							) == 1:
		return list(_SCREAMING_SNAKE_CASE							)
	lowerCAmelCase   =     0
	lowerCAmelCase   =     len(_SCREAMING_SNAKE_CASE							) - 1
	lowerCAmelCase   =     0
	while mid <= high:
		if sequence[mid] == colors[0]:
			lowerCAmelCase,       lowerCAmelCase   =     sequence[mid], sequence[low]
			low += 1
			mid += 1
		elif sequence[mid] == colors[1]:
			mid += 1
		elif sequence[mid] == colors[2]:
			lowerCAmelCase,       lowerCAmelCase   =     sequence[high], sequence[mid]
			high -= 1
		else:
			lowerCAmelCase   =     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()

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




'''simple docstring'''

from __future__ import annotations






def 		_snake_case		( _SCREAMING_SNAKE_CASE					:						int | str							)      ->						bool:







	"""simple docstring"""
	lowerCAmelCase   =     str(_SCREAMING_SNAKE_CASE							)
	return n == n[::-1]






def 		_snake_case		( _SCREAMING_SNAKE_CASE					:						int = 1_000_000							)      ->						Dict:







	"""simple docstring"""
	lowerCAmelCase   =     0

	for i in range(1							,		_SCREAMING_SNAKE_CASE							):
		if is_palindrome(_SCREAMING_SNAKE_CASE							) and is_palindrome(bin(_SCREAMING_SNAKE_CASE							).split("""b"""							)[1]							):
			total += i
	return total


if __name__ == "__main__":
				print(solution(int(str(input().strip()))))