Japhshan and Ramshut#6737

Japhshan and Ramshut

0,75 secondi
256 megabyte
Molto difficile

Today Japhshan and Ramshut are laying the pavement in front of Mrs. Kotchak's house. Pavement has the form of a rectangle of size M \times N. Our workers have an infinite number of bricks of sizes 1 \times L_1, 1 \times L_2, ..., 1 \times L_K at their disposal (the bricks were laying around unused at the nearby construction site).

Your task is to find a way to compose a pavement out of these bricks (without holes and overlaps) or to determine that it is impossible.

Input

The first line of input contains three integer numbers , and (M, N \geq 1, 2 \leq M + N \leq 20, 1 \leq K \leq 5). Second line contains numbers — lengths of bricks. All brick lengths are positive and do not exceed .

Output

If it is possible to compose the pavement, output "YES" (without quotes) on the first line, then lines of lowercase Latin letters describing the composition. Two adjacent letters should be the same if they are related to the same brick, and different otherwise. If the composition is impossible, output "NO" (without quotes). If there is more than one way to compose the pavement, output any.

Esempi

Esempio 1

Loading
Loading