


from typing import Any



class 	__lowerCamelCase			:







       def __init__(			self: Union[str, Any],A_: Any					):






            '''simple docstring'''




            __UpperCamelCase =			data
            __UpperCamelCase =			None



class 	__lowerCamelCase			:







       def __init__(			self: Tuple					):






            '''simple docstring'''




            __UpperCamelCase =			None







       def 		snake_case_	(			self: Tuple					):






            '''simple docstring'''




            __UpperCamelCase =			self.head
            while temp is not None:
                 print(temp.data,end=' '					)
                 __UpperCamelCase =			temp.next
            print()







       def 		snake_case_	(			self: Union[str, Any],A_: Any					):






            '''simple docstring'''




            __UpperCamelCase =			Node(A_					)
            __UpperCamelCase =			self.head
            __UpperCamelCase =			new_node







       def 		snake_case_	(			self: str,A_: Union[str, Any],A_: Optional[Any]					):






            '''simple docstring'''




            if node_data_a == node_data_a:
                 return
            else:
                 __UpperCamelCase =			self.head
                 while node_a is not None and node_a.data != node_data_a:
                      __UpperCamelCase =			node_a.next

                 __UpperCamelCase =			self.head
                 while node_a is not None and node_a.data != node_data_a:
                      __UpperCamelCase =			node_a.next

                 if node_a is None or node_a is None:
                      return

                 __UpperCamelCase,    __UpperCamelCase =			node_a.data, node_a.data


if __name__ == "__main__":
    __snake_case   							=						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()






def 		_A		(		_lowercase = 1_00 )					-> int:


     """simple docstring"""


     __UpperCamelCase =			0
     __UpperCamelCase =			0
     for i in range(1					,  n + 1 ):
          sum_of_squares += i**2
          sum_of_ints += i
     return sum_of_ints**2 - sum_of_squares


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


