




from math import exp





def 			lowerCAmelCase_			(  lowerCamelCase:       List[str]						)					->			float:


      '''simple docstring'''




      return 8 * x - 2 * exp(-x						)





def 			lowerCAmelCase_			(  lowerCamelCase:       Tuple     ,				lowerCamelCase:       Optional[int]     ,				lowerCamelCase:       Dict						)					->			float:


      '''simple docstring'''




      lowerCamelCase__        =				lower_bound
      lowerCamelCase__        =				upper_bound
      for _ in range(0     ,				__lowerCAmelCase						):
            lowerCamelCase__        =				xa, xa - (f(__lowerCAmelCase						) * (xa - xa)) / (f(__lowerCAmelCase						) - f(__lowerCAmelCase						))
      return xa


if __name__ == "__main__":
      print(F"""Example: {secant_method(1, 3, 2)}""")





def 			lowerCAmelCase_			(  lowerCamelCase:       int     ,				lowerCamelCase:       list[tuple[int, int, int]]						)					->			list[tuple[int, int, int]]:


      '''simple docstring'''




      lowerCamelCase__        =				sorted(lowerCamelCase     ,				key=lambda lowerCamelCase						: edge[2]						)

      lowerCamelCase__        =				list(range(lowerCamelCase						)						)

      def find_parent(lowerCamelCase:       int						):
            if i != parent[i]:
                  lowerCamelCase__        =				find_parent(parent[i]						)
            return parent[i]

      lowerCamelCase__        =				0
      lowerCamelCase__        =				[]

      for edge in edges:
            lowerCamelCase__        =				find_parent(edge[0]						)
            lowerCamelCase__        =				find_parent(edge[1]						)
            if parent_a != parent_b:
                  minimum_spanning_tree_cost += edge[2]
                  minimum_spanning_tree.append(lowerCamelCase						)
                  lowerCamelCase__        =				parent_b

      return minimum_spanning_tree


if __name__ == "__main__":  # pragma: no cover
      __SCREAMING_SNAKE_CASE    ,  __SCREAMING_SNAKE_CASE    :   Tuple       =list(map(int, input().strip().split()))
      __SCREAMING_SNAKE_CASE    :   Optional[Any]       =[]

      for _ in range(num_edges):
            __SCREAMING_SNAKE_CASE    ,  __SCREAMING_SNAKE_CASE    ,  __SCREAMING_SNAKE_CASE    :   Optional[int]       =(int(x) for x in input().strip().split())
            edges.append((nodea, nodea, cost))

      kruskal(num_nodes, edges)