Dima work day write long paper strip favorite number n consist l digit Unfortunately strip turn long do not fit Dimas bookshelfto solve issue Dima decide split strip nonempty part contain positive integer lead zero after compute sum integer write new stripDima want result integer small possible increase chance sum fit bookshelf help Dima decide minimum sum obtain