2
5 5
..#..
..#..
#####
..#..
..#..
0 0
3 3
1 2
..
0 0
0 1
