Turtle Elder

No attempts yetTime limit5sMemory limit256 MB

Problem

N islands form a tree. Touching island i changes lifespan by XiX_i days. Some islands are unsafe for landing or signaling. With only one flare, choose safe entry and exit islands to maximize lifespan gain. If the best gain is not positive, print Stay Home.

Input

The first line contains TT test cases (T10T \le 10). Each test case gives NN, N1N-1 bridges, array XiX_i, and a safe/island mask.

Output

Print the maximum lifespan gain, or Stay Home if it is not positive.