import java.util.*; public class Test { public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); int[][] road = new int[n-1][2]; for(int i = 0; i < n-1; i++){ road[i][0] = in.nextInt(); road[i][...