Igor museum want picture possibleMuseum represent rectangular field nm cell each cell impassable empty cell mark impassable cell mark every adjacent cell different type impassable divide wall contain pictureAt begin Igor cell at moment cell share current onefor start position calculate maximum number picture Igor Igor able picture cell adjacent wall picture Igor lot time examine picture