The first line contains an integer n (2≤n≤100000), the number of nodes of the tree.
The second line contains a string of length n. Each character of the string is ( or ), and the x-th character is the label of node x.
Each of the next n−1 lines contains two integers ai and bi (1≤ai,bi≤n), meaning that node ai and node bi are joined by an edge. The given graph is a tree.