Problem D
Where's My Internet??

A new town is being built far out in the country, and
currently there are
The houses are numbered
Given a list of which pairs of houses are already connected by a network cable, determine which houses are not yet connected to the internet.
Input
The first line of input contains two integers
Output
If all the houses are already connected to the internet, output one line containing the string Connected. Otherwise, output a list of house numbers in increasing order, one per line, representing the houses that are not yet connected to the internet.
Sample Input 1 | Sample Output 1 |
---|---|
6 4 1 2 2 3 3 4 5 6 |
5 6 |
Sample Input 2 | Sample Output 2 |
---|---|
2 1 2 1 |
Connected |
Sample Input 3 | Sample Output 3 |
---|---|
4 3 2 3 4 2 3 4 |
2 3 4 |