Now that spring is here and the sun is shining bright, people are starting to lower their blinds. Štefica is an elderly woman who likes to keep track of what other people in the neighbourhood are doing and then talk about it behind their backs. This year, she is particularly interested in who is lowering blinds in the building across the street, and how low are they lowering them.
We will represent each window with a
.... **** **** **** ****
.... .... **** **** ****
.... .... .... **** ****
.... .... .... .... ****
The building across the street has
Input Specification
The first line of input contains space separated integers
The following lines describe the current building state. Each window is represented with one of the #
. See the example input for clarification. Building description will have exactly
Output Specification
Output should contain
Sample Input 1
1 2
###########
#....#****#
#....#****#
#....#....#
#....#....#
###########
Sample Output 1
1 0 1 0 0
Sample Input 2
2 3
################
#****#****#****#
#****#****#****#
#****#....#****#
#....#....#****#
################
#....#****#****#
#....#****#....#
#....#....#....#
#....#....#....#
################
Sample Output 2
1 1 2 1 1
Comments