Input: Bridges may be built to connect an island
Bridges may be built to connect a wire

Output: second