There are at most 100 companies. The solutions for different cases must be separated with a blank record. 3 N rectangles of different colours are superposed on a white sheet of paper. The rectangles are put with their sides parallel to the sheet's borders.
All rectangles fall within the borders of the sheet.
As result, different figures of different colours will be seen. The problem is to calculate the area of each of these figures. White colour will be represented by 1. The order of the records corresponds to the order used to put the rectangles on the sheet. Different data sets will be separated with a blank record.