A prison has $n$ cells with all cell doors shut initially.

prison_cells.pdf