Mr. Seth and his wife are in Thailand for enjoying the holidays. His wife wants to visit every hotel present there. Mr. Seth and his wife are in their hotel and he is planning out how can he fulfill her wife's wish.
There are N hotels there(they are staying at the hotel No. 1). There are exactly M roads connecting those hotels (It is guaranteed that any hotel can be visited from any other by roads). Each road has its length. Every day the couple visits exactly one unvisited hotel and come back. Mr. Seth wants to take the shortest distance to get to any hotel from his hotel(they use the same path to get back to their hotel).
But there is a problem, the Thailand government has announced that the tourists have to choose N-1 roads to move to the city i.e Mr. Seth has to choose total N-1 roads such that they can visit all the other hotels. Also, the path taken to reach any other hotel from their hotel should be the shortest. So in how many ways can, he choose such N-1 roads.
Input :
Output:
Print the number of ways modulo 109+7.
Constraints:
Shortest Distance of 2 from 1 is 1.
Shortest Distance of 3 from 1 is 2.
There are two ways to choose the roads:
1st way : choose roads No. 1, 2
2nd way : choose roads No. 1, 3