
"""simple docstring"""


def      lowerCAmelCase_     (	snake_case_	:    list							,					snake_case_	:    int							,					snake_case_	:    int							,					snake_case_	:    int    )     ->int:
			lowerCamelCase__			:  List[str]  =int((lower_bound + upper_bound) // 2    )
			if array[r] == value:
						return r
			if lower_bound >= upper_bound:
						return -1
			if array[r] < value:
						return binary_search(snake_case_							,					r + 1							,					snake_case_							,					snake_case_    )
			else:
						return binary_search(snake_case_							,					snake_case_							,					r - 1							,					snake_case_    )






def      lowerCAmelCase_     (	snake_case_	:    int							,					snake_case_	:    list    )     ->list:
			lowerCamelCase__			:  Dict  =0
			if matrix[index][0] == value:
						return [index, 0]
			while index < len(snake_case_    ) and matrix[index][0] < value:
						lowerCamelCase__			:  Union[str, Any]  =binary_search(matrix[index]							,					0							,					len(matrix[index]    ) - 1							,					snake_case_    )
						if r != -1:
									return [index, r]
						index += 1
			return [-1, -1]


if __name__ == "__main__":
							import doctest

							doctest.testmod()

"""simple docstring"""


def      lowerCAmelCase_     (	snake_case_	:    str    )     ->int:
			lowerCamelCase__			:  Optional[Any]  =len(snake_case_    )
			lowerCamelCase__			:  Any  =[0] * length
			lowerCamelCase__			:  str  =[[False for i in range(snake_case_    )] for j in range(snake_case_    )]
			for i, c in enumerate(snake_case_    ):
						lowerCamelCase__			:  Optional[Any]  =i
						for j in range(i + 1    ):
									if c == string[j] and (i - j < 2 or is_palindromic[j + 1][i - 1]):
												lowerCamelCase__			:  int  =True
												lowerCamelCase__			:  Tuple  =min(snake_case_							,					0 if j == 0 else (cut[j - 1] + 1)    )
						lowerCamelCase__			:  Any  =mincut
			return cut[length - 1]


if __name__ == "__main__":
							lowerCAmelCase			=		input("""Enter the string: """).strip()
							lowerCAmelCase			=		find_minimum_partitions(s)
							print(f"""Minimum number of partitions required for the '{s}' is {ans}""")