The input is a text file. The first line contains the number of columns (C) and rows (R), separated with space. The next C lines contain the description of the columns of the puzzle: the length of block separated with a space. Finally, the last R lines contain the description of the rows in a format similar to the columns.
Text output on stdout.
PNG files of C x R pixels.