You are given a rooted tree with nodes and node 1 as a root. There is a unique path between any two nodes. Here, is defined as a number of edges in a unique path between nodes and .
You have to find the number of pairs such that and .
Input format
Output format
Print a single integer denoting the number of pairs such that and .
Constraints
All pairs follow the given condition: (1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 3), (2, 4), (3, 3), (3, 4), (4, 4).