You are mapping a distant planet with a satellite.
The satellite has taken one picture of the planet's surface. The photographed region is a grid. Each cell of the grid is land, water, or covered by clouds. A cell covered by clouds may be land or it may be water, and the picture does not tell you which.
An island is a set of connected land cells. Two cells are connected when they share an edge.
Given the picture, find the largest number of islands that is consistent with it.