



"""simple docstring"""






def 	snake_case_  (				A_ :		list						):


       '''simple docstring'''





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

       _lowerCamelCase						:    List[str]         =			[]

       def generate(A_ :		int,    A_ :		list						):
              if k == 1:
                     res.append(tuple(arr[:]						)						)
                     return

              generate(k - 1,    A_						)

              for i in range(k - 1						):
                     if k % 2 == 0:  # k is even
                            _lowerCamelCase						:    List[str]         =			arr[k - 1], arr[i]
                     else:  # k is odd
                            _lowerCamelCase						:    Any         =			arr[k - 1], arr[0]
                     generate(k - 1,    A_						)

       generate(len(A_						),    A_						)
       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"""






from torch import nn






class 	__snake_case	(     nn.Module):




  def __init__(			self					:						Optional[Any]						, __lowerCAmelCase					:						Dict						, __lowerCAmelCase					:						str		):






         """simple docstring"""






         super().__init__()
         _lowerCamelCase						:    List[str]         =			class_size
         _lowerCamelCase						:    List[str]         =			embed_size
         # self.mlp1 = nn.Linear(embed_size, embed_size)
         # self.mlp2 = (nn.Linear(embed_size, class_size))
         _lowerCamelCase						:    Optional[int]         =			nn.Linear(__lowerCAmelCase						, __lowerCAmelCase		)




  def 						SCREAMING_SNAKE_CASE    (			self					:						List[Any]						, __lowerCAmelCase					:						Tuple		):






         """simple docstring"""






         _lowerCamelCase						:    Optional[Any]         =			self.mlp(__lowerCAmelCase		)
         return logits


