As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them:
Yuta has a tree with n vertices, the length of each edge is exactly 1. For any none empty subset S of the vertices, value(S) is equal to max(dis(u,v))(u,v \in S) which dis(u,v) is equal to the distance between u and v on the tree.
It is easy to find that value(S) satisfy 0<=value(S)<n. Now For each K in [0,n), Yuta wants to know the number of the subset S which satisfy value(S)=K.
It is too difficult for Rikka. Can you help her?