T = 4
for tc in range(T):
    n, m = map(int, input().split())
    data = [list(map(int, input())) for _ in range(n)]

6192c295dab1193faeb2e0368103c8525c3f2b1b
<mask token>

<mask token>
for tc in range(T):
    n, m = map(int, input().split())
    data = [list(map(int, input())) for _ in range(n)]

T = 4
for tc in range(T):
    n, m = map(int, input().split())
    data = [list(map(int, input())) for _ in range(n)]
