Friendly Rooks

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

문제

Rook is a piece in the game of chess. It moves horizontally or vertically through any number of unoccupied squares, and can not jump over pieces. The rook can capture other piece if the piece is on the same vertical or horizontal line with the rook. There can be no more than one rook in one square of the chess board.

You are given kk rooks and a chess board with of n×mn \times m. You need place these rooks on the board so that they cannot capture each other.

입력

The only line of input contains three integers nn, mm and kk --- the lengths of the chess board sides and the number of rooks (1n,m,k1001 \le n, m, k \le 100).

출력

If it is impossible to place kk rooks on an n×mn \times m chess board, print the line Impossible.

If there is at least one correct placement, print Possible. Then output nn lines of mm characters each --- the description of the placement of the rooks on the chess board. The jj-th character of the ii-th line must be "*" if the square (i,j)(i, j) contains a rook, or "." if the corresponding square in your placement is empty.

If there are several correct placements, you can output any of them.

힌트

Image of the rook placement for the third test case:

Red marks the squares that the lower left rook can capture, blue marks the squares that the upper right rook can capture, purple --- squares that can be captured by both rooks.