package main import . "fmt" func main() { var n int Scan(&n) tree:=make([][]int,n+1) for e:=0;e