{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eMarjar University is a beautiful and peaceful place. There are \u003cvar\u003eN\u003c/var\u003e buildings and \u003cvar\u003eN\u003c/var\u003e - 1 bidirectional roads in the campus. These buildings are connected by roads in such a way that there is exactly one path between any two buildings. By coincidence, the length of each road is 1 unit.\u003c/p\u003e\n\u003cp\u003eTo ensure the campus security, Edward, the headmaster of Marjar University, plans to setup two fire stations in two different buildings so that firefighters are able to arrive at the scene of the fire as soon as possible whenever fires occur. That means the longest distance between a building and its nearest fire station should be as short as possible.\u003c/p\u003e\n\u003cp\u003eAs a clever and diligent student in Marjar University, you are asked to write a program to complete the plan. Please find out two proper buildings to setup the fire stations.\u003c/p\u003e\n\u003ch4\u003eInput\u003c/h4\u003e\n\u003cp\u003eThere are multiple test cases. The first line of input contains an integer \u003cvar\u003eT\u003c/var\u003e indicating the number of test cases. For each test case:\u003c/p\u003e\n\u003cp\u003eThe first line contains an integer \u003cvar\u003eN\u003c/var\u003e (2 \u0026lt;\u003d \u003cvar\u003eN\u003c/var\u003e \u0026lt;\u003d 200000).\u003c/p\u003e\n\u003cp\u003eFor the next \u003cvar\u003eN\u003c/var\u003e - 1 lines, each line contains two integers \u003cvar\u003eX\u003csub\u003ei\u003c/sub\u003e\u003c/var\u003e and \u003cvar\u003eY\u003csub\u003ei\u003c/sub\u003e\u003c/var\u003e. That means there is a road connecting building \u003cvar\u003eX\u003csub\u003ei\u003c/sub\u003e\u003c/var\u003e and building \u003cvar\u003eY\u003csub\u003ei\u003c/sub\u003e\u003c/var\u003e (indexes are 1-based).\u003c/p\u003e\n\u003ch4\u003eOutput\u003c/h4\u003e\n\u003cp\u003eFor each test case, output three integers. The first one is the minimal longest distance between a building and its nearest fire station. The next two integers are the indexes of the two buildings selected to build the fire stations.\u003c/p\u003e\n\u003cp\u003eIf there are multiple solutions, any one will be acceptable.\u003c/p\u003e\n\u003ch4\u003eSample Input\u003c/h4\u003e\n\u003cpre\u003e2\n4\n1 2\n1 3\n1 4\n5\n1 2\n2 3\n3 4\n4 5\n\u003c/pre\u003e\n\u003ch4\u003eSample Output\u003c/h4\u003e\n\u003cpre\u003e1 1 2\n1 2 4\n\u003c/pre\u003e"}}]}