





'''simple docstring'''







from scipy.constants import g





def    _lowerCAmelCase						(						lowercase					,	lowercase	)					->					float:
			if mass < 0:
						# handling of negative values of mass
						raise ValueError("""The mass of a body cannot be negative"""	)
			if height < 0:
						# handling of negative values of height
						raise ValueError("""The height above the ground cannot be negative"""	)
			return mass * g * height


if __name__ == "__main__":
	from doctest import testmod

	testmod(name="""potential_energy""")








'''simple docstring'''







def    _lowerCAmelCase						(						lowercase	)					->					int:
			__lowerCAmelCase											=				len(lowercase	)
			__lowerCAmelCase											=				[0] * length
			__lowerCAmelCase											=				[[False for i in range(lowercase	)] for j in range(lowercase	)]
			for i, c in enumerate(lowercase	):
						__lowerCAmelCase											=				i
						for j in range(i + 1	):
									if c == string[j] and (i - j < 2 or is_palindromic[j + 1][i - 1]):
												__lowerCAmelCase											=				True
												__lowerCAmelCase											=				min(lowercase					,	0 if j == 0 else (cut[j - 1] + 1)	)
						__lowerCAmelCase											=				mincut
			return cut[length - 1]


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

