Problem H. Hide the dot

Author:Антон Карабанов   Time limit:1 sec
Input file:Standard input   Memory limit:512 Mb
Output file:Standard output  

Statement

We are already used to advanced algorithms for automatic image processing. With their help, it costs us nothing to remove the background from the photo, cover up the wrinkles and even make a joint collage with any celebrity. But have you ever wondered how such programs work? Is it difficult to write them? You are presented with a simple task: find and remove a single extra character from an ASCII picture.

A picture of size n × m contains an image of an empty rectangle one pixel thick and one extra pixel, denoted by "#" symbols (ASCII code 35). The rectangle is at least three pixels long and three pixels wide, and its sides are parallel to the edges of the image. The background of the picture is filled with "." (ASCII code 46).

Input format

The first line of the input contains two integers: n and m. The next n lines contain strings of length m, consisting of the characters "#" and ".".

Output format

Output n lines of m characters each — the same image with an extra pixel removed.

Constraints

3 ≤ n, m ≤ 100

Sample tests

No. Standard input Standard output
1
5 5
..#..
.####
.#..#
.####
.....
.....
.####
.#..#
.####
.....
2
3 3
###
###
###
###
#.#
###
3
7 8
........
.#####..
.#...#..
.#...#..
.#####..
........
...#....
........
.#####..
.#...#..
.#...#..
.#####..
........
........

0.096s 0.017s 13