



def 	UpperCAmelCase     (		A	:						int | float | str       ):

		'''simple docstring'''


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


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"""





import os




def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase							 =		os.path.join(os.path.dirname(A       )     ,				'num.txt'       )
		with open(A       ) as file_hand:
				return str(sum(int(A       ) for line in file_hand       )       )[:10]


if __name__ == "__main__":
					print(solution())


