






def 						a    (		lowerCamelCase_       ):






				'''simple docstring'''
				try:
								lowercase__     				=    float(lowerCamelCase_       )
				except ValueError:
								raise ValueError('''Please enter a valid number'''       )
				lowercase__     				=    decimal - int(lowerCamelCase_       )
				if fractional_part == 0:
								return int(lowerCamelCase_       ), 1
				else:
								lowercase__     				=    len(str(lowerCamelCase_       ).split('''.'''       )[1]       )
								lowercase__     				=    int(decimal * (10**number_of_frac_digits)       )
								lowercase__     				=    10**number_of_frac_digits
								lowercase__				,		lowercase__     				=    denominator, numerator
								while True:
												lowercase__     				=    dividend % divisor
												if remainder == 0:
																break
												lowercase__				,		lowercase__     				=    divisor, remainder
								lowercase__				,		lowercase__     				=    numerator / divisor, denominator / divisor
								return int(lowerCamelCase_       ), int(lowerCamelCase_       )


if __name__ == "__main__":
							print(F"{decimal_to_fraction(2) = }")
							print(F"{decimal_to_fraction(89.0) = }")
							print(F"{decimal_to_fraction('67') = }")
							print(F"{decimal_to_fraction('45.0') = }")
							print(F"{decimal_to_fraction(1.5) = }")
							print(F"{decimal_to_fraction('6.25') = }")
							print(F"{decimal_to_fraction('78td') = }")







class    _UpperCAmelCase      :

				"""simple docstring"""




				def __init__(  self		:					Optional[int],						lowerCamelCase		:					Union[str, Any]						):

								'''simple docstring'''
								# we need a list not a string, so do something to change the type
								lowercase__     				=    arr.split(''','''						)




				def        lowercase__     (  self		:					Optional[int]						):

								'''simple docstring'''
								lowercase__     				=    [int(self.array[0]						)] * len(self.array						)
								lowercase__     				=    [int(self.array[0]						)] * len(self.array						)
								for i in range(1,						len(self.array						)						):
												lowercase__     				=    max(
												    int(self.array[i]						) + sum_value[i - 1],						int(self.array[i]						)						)
												lowercase__     				=    max(sum_value[i],						rear[i - 1]						)
								return rear[len(self.array						) - 1]


if __name__ == "__main__":
							A__			:    Dict         =				input('please input some numbers:')
							A__			:    Union[str, Any]         =				SubArray(whole_array)
							A__			:    int         =				array.solve_sub_array()
							print(('the results is:', re))




