- Time limit: 1.00 s
- Memory limit: 512 MB
There are cities and flight connections between them. A city is called a critical city if it appears on every route from a city to another city.
Your task is to find all critical cities from Syrjälä to Lehmälä.
Input
The first input line has two integers and : the number of cities and flights. The cities are numbered . City is Syrjälä, and city is Lehmälä.
Then, there are lines describing the connections. Each line has two integers and : there is a flight from city to city . All flights are one-way.
You may assume that there is a route from Syrjälä to Lehmälä.
Output
First print an integer : the number of critical cities. After this, print integers: the critical cities in increasing order.
Constraints
Example
Input:
5 5 1 2 2 3 2 4 3 5 4 5
Output:
3 1 2 5