Again Saitama is bored!! And this time he decides that he will play a game. Given is a tree of n nodes. For every node i (1≤i≤n) he wants to find out the sum of distances of all the other nodes from the i-th node. Since he is not very good in solving tree-related problems, he has asked you to do it instead. Can you solve the problem.
Input format
Output format
Constraints