H,W=map(int,readline().split()) A=[list(map(int,readline().split())) for h in range(H)]