Input two positive integers — W and H, determining size of text screen. Then input a sequence of 5-value series x y width height c, where first 4 values are integers (coordinates of the top left corner of a rectangle and positive width and height of the rectangle), and 5th parameter is printable character. Output screen filled with '.' and all the rectangle draught in order by the corresponded characters. Upper left corner of screen has coordinates (0,0).
24 16 2 0 4 8 * 0 2 14 12 # 20 2 1 1 ! 10 11 8 5 + 3 4 21 7 @
Mind the space between height and c
..****.................. ..*..*.................. ##############......!... #.*..*.......#.......... #.*@@@@@@@@@@@@@@@@@@@@@ #.*@.*.......#.........@ #.*@.*.......#.........@ #.*@**.......#.........@ #..@.........#.........@ #..@.........#.........@ #..@@@@@@@@@@@@@@@@@@@@@ #.........++++++++...... #.........+..#...+...... ##########+###...+...... ..........+......+...... ..........++++++++......