Fire safety
There are houses in the city of Zelenograd. Some of them are connected by one-way roads.
In recent times in Zelenograd the incidents of fires have increased. In this regard, the residents decided to build several fire stations in the city. But there was a problem - the fire engine traveling on the call, of course, can ignore the direction of the current road, however, the car returning from the job is obliged to follow the traffic rules (the people of Zelenograd piously respect these rules!).
It is clear that wherever the fire truck will be, it should be possible to return to the fire station where from it started its way. But the construction of stations costs a lot of money, so at the city council it was decided to build a minimum number of stations in such a way that this condition was hold. In addition for saving money, it was decided to build stations in the form of extensions to existing houses.
Your task is to write a program that calculates the optimal position of the stations.
Input
First line contains the number of houses . Second line contains the number of roads . Then the description of the roads is given in format meaning that it is allowed for the cars to move along the road from the house to the house .
Output
In the first line print the minimum number of fire stations that must be built. In the second line print numbers in random order — the houses where you need to attach the fire stations. If there are several optimal solutions, output any.