import re H, W = map(int, input().split()) for i in range(H): s = input() l = 0 T = [] while(l