AT_abc452_b [ABC452B] Draw Frame

Description

There is a grid with $ H $ rows and $ W $ columns. Takahashi is going to paint each cell of this grid black or white. He paints all cells on the border of the grid black, and all other cells white. Output the grid after he has painted it. More formallyThere is an $ H\times W $ grid. We call the cell at the $ i $ -th row from the top $ (1\le i\le H) $ and the $ j $ -th column from the left $ (1\le j\le W) $ cell $ (i,j) $ . Cell $ (i,j)\ (1\le i\le H,1\le j\le W) $ and cell $ (k,l)\ (1\le k\le H,1\le l\le W) $ are said to be **edge-adjacent** if and only if $ |i-k|+|j-l|=1 $ . Cell $ (i,j) $ is said to be **on the border** if and only if the number of cells edge-adjacent to cell $ (i,j) $ is at most $ 3 $ . Find $ H $ strings $ S _ 1,S _ 2,\ldots,S _ H $ satisfying the following condition. - $ S _ i $ is a string of length $ W $ , and the $ j $ -th character of $ S _ i $ is `#` if cell $ (i,j) $ is on the border, and `.` otherwise.

Input Format

The input is given from Standard Input in the following format: > $ H $ $ W $

Output Format

Output $ H $ lines, each a string of length $ W $ . The $ j $ -th character $ (1\le j\le W) $ of the $ i $ -th line $ (1\le i\le H) $ should be `#` if cell $ (i,j) $ is painted black, and `.` if it is painted white.

Explanation/Hint

### Sample Explanation 1 For example, cell $ (1,1) $ is on the border. This is because there are only two cells edge-adjacent to cell $ (1,1) $ : cells $ (1,2) $ and $ (2,1) $ . Thus, cell $ (1,1) $ is painted black, so the first character of the first line should be `#`. Conversely, for example, cell $ (3,4) $ is not on the border. This is because there are four cells edge-adjacent to cell $ (3,4) $ : cells $ (2,4), $ $ (3,3), $ $ (3,5), $ and $ (4,4) $ . Thus, cell $ (3,4) $ is painted white, so the fourth character of the third line should be `.`. ### Constraints - $ 3\le H\le10 $ - $ 3\le W\le10 $ - All input values are integers.