SSB Tournament

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

Aditya is organizing a huge tournament to play the new hit video game Super Slam Battle (SSB). However, rather than the classic 11 vs 11 games, he wants to introduce some chaos into the matches by having 33 players in every game. He has recruited nn people to come participate in the tournament. Now, some of the contestants know each other from before so if they are in the same game, they will only play with each other if the competitive rule set is used. If two contestants do not know each other from before, then they will only play with each other if the casual rule set is used. Thus, Aditya realizes that he can only organize a game between 33 participants if they all knew each other before or if they all did not know each other before. Given kk pairs of people that knew each other before the tournament, help Aditya figure out the total number of games that he can organize.

입력

The first line consists of two space-separated integers nn and kk, the number of people in the tournament and the number of pairs of people that knew each other before respectively, with 3n1063 \leq n \leq 10^6 and 1k1061 \leq k \leq 10^6. Each of the next kk lines contain two space-separated integers uu and vv (1u,vn1 \leq u,v \leq n and uvu \neq v), signifying two people uu and vv that know each other before the tournament. Each pair (u,v)(u, v) will be specified at most once.

출력

Print the number of distinct games with 33 people that Aditya can organize.