J. Junior Steiner Three
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Examples
Input
4 5
.....
..#..
....#
.#...
Output
.....
..#..
.####
.#...
Input
3 3
..#
.#.
#..
Output
..#
###
#..
Input
4 3
..#
.##
...
...
Output
..#
.##
...
...