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