DWITE Contest

Test Case for Question #1 in DWITE 2008-2009 High School Round 2

Contest: DWITE 2008-2009 High School Round 2
Question: #1
Input File: DATA1.txt
Output File: OUT1.txt


Input

.....
.....
.....
.....
.....
.....
.....

.....
#....
##...
###..
####.
#####
#....

#....
##...
###..
##...
###..
###..
##...

####.
###..
####.
##...
###..
####.
#####

#####
#####
#####
#####
#####
#####
#####




Output

0000000
0123451
1232332
4342345
5555555