#!/usr/bin/env python3 # NOTE: it is recommended to use this even if you don't understand the following code. # input data N = int(input().strip()) V = list(map(int, input().strip().split())) A, B = map(list, zip(*[map(int, input().strip().split()) for _ in range(N - 1)])) Q = int(input().strip()) for i in range(Q): x, y = map(int, input().strip().split()) # insert your code here print(42) # print the result