CF1423N BubbleSquare Tokens

Description

BubbleSquare social network is celebrating $ 13^{th} $ anniversary and it is rewarding its members with special edition BubbleSquare tokens. Every member receives one personal token. Also, two additional tokens are awarded to each member for every friend they have on the network. Yet, there is a twist – everyone should end up with different number of tokens from all their friends. Each member may return one received token. Also, each two friends may agree to each return one or two tokens they have obtained on behalf of their friendship.

Input Format

N/A

Output Format

N/A

Explanation/Hint

In the first test case, only the first member will keep its personal token and no tokens will be awarded for friendship between the first and the second member. In the second test case, none of the members will keep their personal token. The first member will receive two tokens (for friendship with the third member), the second member will receive one token (for friendship with the third member) and the third member will receive three tokens (for friendships with the first and the second member).