All lifeboats are located in the north west corner of the boat. Unflooded spaces adjacent to the newly flooded spaces will flood after A more spaces. You may not move into a section that will flood before the next turn unless it is the section with the lifeboat. You may not enter any section more than once. The map of the boat will have at most 20 columns and 20 rows.
People move using Manhattan geometry only no diagonal moves.
The first line will indicate how many sinking ships will be entered. A final diagram, indicating only the moves should be displayed. Each section should take up 3 spaces in the final diagram. All numbers and letters should be right justified. After printing a path or the message, a blank line should appear.