Glitching screen

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Petter is taking the local train in a new city for the first time. He is well prepared and have memorized the names of all the stops. However, some of the pixels on the monitor that displays the upcoming stop are broken. Can you help him decide what the next stop is?

입력

The first line of input consists of three integers 1h1001 \leq h \leq 100, 1w1001 \leq w \leq 100 and 1n1001 \leq n \leq 100, the height and width of the screen in pixels and the number of train stops, respectively. Then there are hnh \cdot n lines, where line ihi\cdot h to ih+h1i\cdot h + h - 1 shows how train stop ii is rendered on a fully functioning screen (for stops i0,1,2,,n1i \in \\{0, 1, 2, \ldots, n-1\\}). The input ends with hh more lines that shows the current screen. Pixels on the screen that are turned on are denoted by x and pixels that are turned off are denoted by a period (.). If a screen is broken, it means that one or more of the pixels are always off.

출력

Output yes if you can tell him what the next stop is, and no otherwise.