Paint By Numbers

aka Nonograms, Crucipixel, Logic Art or a million other names.

Run 1

Input

2
2
6
6
2
2
-
2
2
6
6
2
2

Expected Output

  XX
  XX
XXXXXX
XXXXXX
  XX
  XX