



'''simple docstring'''



def _lowercase (	__A							):



 '''simple docstring'''



 try:
  __UpperCamelCase					   =	float(__UpperCamelCase							)
 except ValueError:
  raise ValueError("""Please enter a valid number"""							)
 __UpperCamelCase					   =	decimal - int(__UpperCamelCase							)
 if fractional_part == 0:
  return int(__UpperCamelCase							), 1
 else:
  __UpperCamelCase					   =	len(str(__UpperCamelCase							).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(__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") = }''')










from __future__ import annotations

from typing import Any


def A    (							__UpperCamelCase       )    ->   int:
			if not postfix_notation:
						return 0

			A__	  =     {'+', '-', '*', '/'}
			A__	  =     []

			for token in postfix_notation:
						if token in operations:
									A__  ,			A__	  =     stack.pop(), stack.pop()
									if token == "+":
												stack.append(a + b       )
									elif token == "-":
												stack.append(a - b       )
									elif token == "*":
												stack.append(a * b       )
									else:
												if a * b < 0 and a % b != 0:
															stack.append(a // b + 1       )
												else:
															stack.append(a // b       )
						else:
									stack.append(int(__UpperCamelCase       )       )

			return stack.pop()


if __name__ == "__main__":
							import doctest

							doctest.testmod()




