Please help to solve a problem Boxes from IOI 2015.
Hello dear readers. Tell please how to solve a problem boxes ( ENG RUS ). ( from IOI 2015 day 1 ).
And also can you tell where it is possible to find analyses of problems of last IOI ( desirable in Russian )?
Thank you very much.