






'''simple docstring'''
from typing import Any


class 							_UpperCAmelCase    :




    def __init__(      self	:							str	,  a	:							Any      ):






       '''simple docstring'''






       lowercase_						:     str							     =  data
       lowercase_						:     Optional[Any]							     =  None


class 							_UpperCAmelCase    :




    def __init__(      self	:							Tuple      ):






       '''simple docstring'''






       lowercase_						:     Optional[Any]							     =  None




    def 					lowerCAmelCase__					(      self	:							Union[str, Any]      ):






       '''simple docstring'''






       lowercase_						:     Union[str, Any]							     =  self.head
       while temp is not None:
          print(temp.data	,  end=" "      )
          lowercase_						:     str							     =  temp.next
       print()




    def 					lowerCAmelCase__					(      self	:							Dict	,  a	:							Any      ):






       '''simple docstring'''






       lowercase_						:     Optional[Any]							     =  Node(a      )
       lowercase_						:     str							     =  self.head
       lowercase_						:     List[str]							     =  new_node





    def 					lowerCAmelCase__					(      self	:							Optional[int]	,  a	:							str	,  a	:							int      ):






       '''simple docstring'''






       if node_data_a == node_data_a:
          return
       else:
          lowercase_						:     Dict							     =  self.head
          while node_a is not None and node_a.data != node_data_a:
             lowercase_						:     List[str]							     =  node_a.next

          lowercase_						:     Any							     =  self.head
          while node_a is not None and node_a.data != node_data_a:
             lowercase_						:     Optional[int]							     =  node_a.next

          if node_a is None or node_a is None:
             return

          lowercase_     ,		lowercase_						:     Optional[int]							     =  node_a.data, node_a.data


if __name__ == "__main__":
 UpperCamelCase__			=      LinkedList()
 for i in range(5, 0, -1):
  ll.push(i)

 ll.print_list()

 ll.swap_nodes(1, 4)
 print('After swapping')
 ll.print_list()












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


   """simple docstring"""




   lowercase_						:     Dict							     =  n * (n + 1) * (2 * n + 1) / 6
   lowercase_						:     int							     =  (n * (n + 1) / 2) ** 2
   return int(square_of_sum - sum_of_squares				)


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




