





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








def 		lowerCAmelCase_    (  __UpperCAmelCase:			int      )      ->	bool:
    return str(__UpperCAmelCase      ) == str(__UpperCAmelCase      )[::-1]




def 		lowerCAmelCase_    (  __UpperCAmelCase:			int      )      ->	int:
    return int(__UpperCAmelCase      ) + int(str(__UpperCAmelCase      )[::-1]      )




def 		lowerCAmelCase_    (  __UpperCAmelCase:			int = 1_0000      )      ->	int:
    UpperCamelCase__							:				Optional[Any]          =      []
    for num in range(1		,   __UpperCAmelCase      ):
        UpperCamelCase__							:				str          =      0
        UpperCamelCase__							:				Any          =      num
        while iterations < 50:
            UpperCamelCase__							:				List[Any]          =      sum_reverse(__UpperCAmelCase      )
            iterations += 1
            if is_palindrome(__UpperCAmelCase      ):
                break
        else:
            lychrel_nums.append(__UpperCAmelCase      )
    return len(__UpperCAmelCase      )


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

