




'''simple docstring'''







def 		_lowercase		(     lowercase_						,							lowercase_  ):



		'''simple docstring'''







		_snake_case     	=	sorted(lowercase_						,							key=lambda lowercase_  : edge[2]  )

		_snake_case     	=	list(range(lowercase_  )  )

		def find_parent(lowercase_  ):
				if i != parent[i]:
						_snake_case     	=	find_parent(parent[i]  )
				return parent[i]

		_snake_case     	=	0
		_snake_case     	=	[]

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

		return minimum_spanning_tree


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

						for _ in range(num_edges):
												_lowerCamelCase							:						Any							     =				(int(x) for x in input().strip().split())
												edges.append((nodea, nodea, cost))

						kruskal(num_nodes, edges)











'''simple docstring'''







def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) * 9 / 5) + 32						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round(float(lowercase_  ) + 273.15						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) * 9 / 5) + 491.67						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) - 32) * 5 / 9						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round(((float(lowercase_  ) - 32) * 5 / 9) + 273.15						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round(float(lowercase_  ) + 459.67						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round(float(lowercase_  ) - 273.15						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round(((float(lowercase_  ) - 273.15) * 9 / 5) + 32						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) * 9 / 5)						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) - 491.67) * 5 / 9						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round(float(lowercase_  ) - 459.67						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) * 5 / 9)						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) * 1.25 + 273.15)						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) * 2.25 + 32)						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) * 1.25)						,							lowercase_  )






def 		_lowercase		(     lowercase_						,							lowercase_ = 2  ):



		'''simple docstring'''







		return round((float(lowercase_  ) * 2.25 + 32 + 459.67)						,							lowercase_  )


if __name__ == "__main__":
						import doctest

						doctest.testmod()





