CF1470D Strange Housing

Description

Students of Winter Informatics School are going to live in a set of houses connected by underground passages. Teachers are also going to live in some of these houses, but they can not be accommodated randomly. For safety reasons, the following must hold: - All passages between two houses will be closed, if there are no teachers in both of them. All other passages will stay open. - It should be possible to travel between any two houses using the underground passages that are open. - Teachers should not live in houses, directly connected by a passage. Please help the organizers to choose the houses where teachers will live to satisfy the safety requirements or determine that it is impossible.

Input Format

N/A

Output Format

N/A

Explanation/Hint

The picture below shows the second example test. ![](https://espresso.codeforces.com/a897ddb7078dd022b869fc31de83d3960c42a931.png)