DWITE Contest

Test Case for Question #5 in DWITE 2009-2010 High School Round 2

Contest: DWITE 2009-2010 High School Round 2
Question: #5
Input File: DATA5.txt
Output File: OUT5.txt


Input

10
11
..#.....#A.
..#.a...#..
###########
1.b.#BF#..e
....#c3#.C2
###########
4........#E
.d...D...#.
##########.
5f.........




Output

1:2 3 5
2:3 5
3:2 5
4:
5:2 3