






'''simple docstring'''
def 		__SCREAMING_SNAKE_CASE       (	_UpperCamelCase				):


   """simple docstring"""




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

   lowercase_						:     List[str]							     =  []

   def generate(_UpperCamelCase    ,		_UpperCamelCase				):
      lowercase_						:     Dict							     =  [0] * n
      res.append(tuple(_UpperCamelCase				)				)

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

   generate(len(_UpperCamelCase				)    ,		_UpperCamelCase				)
   return res


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












'''simple docstring'''
UpperCamelCase__			=      {
    "joule": 1.0,
    "kilojoule": 1000,
    "megajoule": 1000000,
    "gigajoule": 1000000000,
    "wattsecond": 1.0,
    "watthour": 3600,
    "kilowatthour": 3600000,
    "newtonmeter": 1.0,
    "calorie_nutr": 4186.8,
    "kilocalorie_nutr": 4186800.00,
    "electronvolt": 1.602176634e-19,
    "britishthermalunit_it": 1055.05585,
    "footpound": 1.35_58_18,
}




def 		__SCREAMING_SNAKE_CASE       (	_UpperCamelCase    ,		_UpperCamelCase    ,		_UpperCamelCase				):


   """simple docstring"""




   if to_type not in ENERGY_CONVERSION or from_type not in ENERGY_CONVERSION:
      lowercase_						:     Union[str, Any]							     =  (
          F"""Incorrect 'from_type' or 'to_type' value: {from_type!r}, {to_type!r}\n"""
          F"""Valid values are: {", ".join(_UpperCamelCase				)}"""
      )
      raise ValueError(_UpperCamelCase				)
   return value * ENERGY_CONVERSION[from_type] / ENERGY_CONVERSION[to_type]


if __name__ == "__main__":
 import doctest

 doctest.testmod()




