A tree is a connected undirected graph with no cycle. You are given a tree with N nodes and N−1 edges. You want to color the tree, that is, give every node one color from {1,2,…,K} so that two nodes joined by an edge always get different colors.
Write a program that counts how many colorings there are. The count can be very large, so print it modulo 93563.
The first line contains the number of test cases T (1≤T≤10). Then T test cases follow, each in this format.
Print T lines. For each test case, print the number of colorings modulo 93563 on one line, in input order.