It's Gay Lord Gogo birthday today, he has to distribute chocolates to all his friends, All his friends may not be friends with each other. If two people are friends and one gets more chocolates than the other the one who gets lower will be upset! Now we do not want anyone to be upset so can you find how many chocolates Gay Lord Gogo will have to buy in order to keep everyone happy while not spending too much money.
Gay Lord Gogo also can not give every different group of friends the same amount of chocolates.
Explanation: A and B are friends, and C and D are friends, so if Gay Lord Gogo gives 1 chocolate to A, 1 chocolate to B, he can not give 1 chocolate to C & D.
N, M denoting the number of Friends and a number of distinct bonds of friendships.
M lines containing two integers, X & Y, means X & Y are friends
The minimum amount of chocolates given to a group = 1
1<=N<=10^5
1<=M<=10^5
The minimum amount of chocolates required
1 and 2 get 1 chocolate each.
3 and 4 get 2 chocolates each.
5 and 6 get 3 chocolates each.
Total = 2 + 4 + 6 = 12 chocolates.