def lowerCamelCase  (   SCREAMING_SNAKE_CASE	):
    '''simple docstring'''







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


if __name__ == "__main__":
    print(F'{decimal_to_fraction(2) = }')
    print(F'{decimal_to_fraction(8_9.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") = }')












'''simple docstring'''







def  _lowerCamelCase				( lowercase						:      str						)	->	list:
				if n_term == "":
								return []
				_a								= []
				for temp in range(int(lowercase						)						):
								series.append(F'1/{temp + 1}' if series else "1"						)
				return series


if __name__ == "__main__":
					lowerCAmelCase_					:    Union[str, Any]      	=			input('Enter the last number (nth term) of the Harmonic Series')
					print('Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n')
					print(harmonic_series(nth_term))
