Oil Deal
Oil is a very important strategic resource. Recently United States of Antarctica invaded the rich in oil country of Qari, and now try to keep the control of the oil transportation system. The system consists of pipelines that connect different nodes — oil sources and main country cities and ports. It is designed in such a way that it is possible to transport oil from any node to any other one.
However, the resisting native forces of Qari are not satisfied with the situation. So they continuously perform terror acts, blowing up some oil pipelines. Recently terrorists have decided to perform a series of explosions and want to hurt the oil pipeline system as much as possible.
For each pipeline the terrorists know the cost of blowing it up. They have a fixed sum of money and want to explode as many pipes as possible for this sum. However, since they still need oil for themselves in different regions of the country, they want the system still to be able to transport oil from any node to any other one. Help them to find out which pipes to blow up.
Input
The first line contains the number of nodes , the number of pipelines , and the amount of money terrorists have. The following lines contain information about pipelines - for each pipeline the nodes it connects and the cost of blowing it up is specified (cost does not exceed ).
Oil can be transported along each pipeline in both directions, each two nodes are connected by at most one pipeline.
Output
On the first line print the maximal number of pipelines terrorists can blow up. On the second line print the numbers of these pipelines (pipelines are numbered starting with as they are listed in the input file).