h,w=map(int,input().split()) a=[list(map(int,input().split())) for i in range(h)]