


def  SCREAMING_SNAKE_CASE_		(    __A				:    int | float | str       )			->	tuple[int, int]:

       """simple docstring"""

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


if __name__ == "__main__":
   print(F'{decimal_to_fraction(2) = }')
   print(F'{decimal_to_fraction(8_9.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  SCREAMING_SNAKE_CASE_		(    __A				:    list       )			->	list:

       """simple docstring"""

       if len(__A       ) <= 1:
              return [tuple(__A       )]

       a_      :	Optional[Any]							=						[]

       def generate(__A				:    int						,					__A				:    list       ):
              a_      :	str							=						[0] * n
              res.append(tuple(__A       )       )

              a_      :	Optional[int]							=						0
              while i < n:
                     if c[i] < i:
                            if i % 2 == 0:
                                   a_							,	a_      :	Dict							=						arr[i], arr[0]
                            else:
                                   a_							,	a_      :	Union[str, Any]							=						arr[i], arr[c[i]]
                            res.append(tuple(__A       )       )
                            c[i] += 1
                            a_      :	Dict							=						0
                     else:
                            a_      :	Optional[Any]							=						0
                            i += 1

       generate(len(__A       )						,					__A       )
       return res


if __name__ == "__main__":
   UpperCAmelCase_   :				Union[str, Any]						      = input('Enter numbers separated by a comma:\n').strip()
   UpperCAmelCase_   :				Optional[Any]						      = [int(item) for item in user_input.split(',')]
   print(heaps(arr))


