
def extract_arguments(fh):
    N = int(fh.readline().strip())
    edges = []
    for _ in range(N - 1):
        a, b = map(int, fh.readline().strip().split())
        edges.append((a, b))
    s = fh.readline().strip()
    return N, edges, s


