






"""simple docstring"""



def      _lowerCAmelCase		(							UpperCAmelCase__       :					int | float | str      )		->tuple[int, int]:
						try:
												A__						:  List[Any]		  =  float(UpperCAmelCase__      )
						except ValueError:
												raise ValueError("""Please enter a valid number"""      )
						A__						:  List[str]		  =  decimal - int(UpperCAmelCase__      )
						if fractional_part == 0:
												return int(UpperCAmelCase__      ), 1
						else:
												A__						:  Any		  =  len(str(UpperCAmelCase__      ).split("""."""      )[1]      )
												A__						:  Union[str, Any]		  =  int(decimal * (1_0**number_of_frac_digits)      )
												A__						:  List[Any]		  =  1_0**number_of_frac_digits
												A__  ,  A__						:  int		  =  denominator, numerator
												while True:
																		A__						:  Tuple		  =  dividend % divisor
																		if remainder == 0:
																								break
																		A__  ,  A__						:  str		  =  divisor, remainder
												A__  ,  A__						:  Optional[int]		  =  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"""



import baseaa




def      _lowerCAmelCase		(							UpperCAmelCase__       :					str      )		->bytes:
						return baseaa.baaencode(string.encode("""utf-8"""      )      )




def      _lowerCAmelCase		(							UpperCAmelCase__       :					bytes      )		->str:
						return baseaa.baadecode(UpperCAmelCase__      ).decode("""utf-8"""      )


if __name__ == "__main__":
						A_    =							'''Hello World!'''
						A_    =							baseaa_encode(test)
						print(encoded)

						A_    =							baseaa_decode(encoded)
						print(decoded)






