Олимпиадный тренинг

Задача 38845. Prime Minister


Задача

Темы: Обход в глубину
The new prime minister decided to travel across Russia from Moscow to Vladivostok by rail and then back. He instructed his assistants to develop a route so that he did not have to pass through the same city twice. However, the assistants said that this was not possible for the Russian Railways. Decide which cities the Prime Minister will be forced to visit twice.

Input
The first line of the input file contains the numbers N - the number of Russian cities connected by railways into a single network and M - the number of railway lines connecting pairs of cities (1 <= N <= 20000, 1 <= M <= 200000) . The cities are numbered from 1 to N. Each of the next M lines contains a pair of positive integers describing between which two cities the corresponding railway line passes. The last line contains two integers S and E (1 <= S != E <= N) - numbers of Moscow and Vladivostok according to Russian Railways.

Imprint
In the first line print number B - the number of cities that the prime minister will have to visit twice. In the next lines print B integers - the numbers of these cities in ascending order.

 
 
Examples
# Input Output
1 3 2
1 2
23
3 1
1
2