



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


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") = }')








'''simple docstring'''



def      UpperCAmelCase__   (      UpperCAmelCase_       :							int = 1_00				)	->						int:
     __lowerCamelCase  :      Union[str, Any]														=						n * (n + 1) * (2 * n + 1) / 6
     __lowerCamelCase  :      Union[str, Any]														=						(n * (n + 1) / 2) ** 2
     return int(square_of_sum - sum_of_squares				)


if __name__ == "__main__":
      print(f'''{solution() = }''')






