0 0 0 0 0 0 0 0 0
0 0 0 0 -1 0 0 0 0
0 -1 0 0 0 -1 0 -1 0
0 0 0 -1 0 -1 0 -1 0
0 0 0 -1 0 -1 0 -1 0
0 0 0 0 -1 0 -1 0 0
0 -1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 1 1 1 0 0 0
1 1 1 1 -1 2 2 1 1
1 -1 2 2 4 -1 4 -1 2
1 1 3 -1 5 -1 6 -1 3
0 0 2 -1 5 -1 5 -1 2
1 1 2 2 -1 3 -1 2 1
1 -1 1 1 1 2 1 1 0
1 1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
n = 9 m = 10 a = [] start = temp = 0 for i in range(n): line = list(map(int, input().split())) a += line for i in range(n ** 2): if a[i] == -1: __________ __________ for j in range(3): __________ if a[start + col - 1] > -1: a[start + col - 1] += 1 if a[start + col] > -1: a[start + col] += 1 if a[start + col + 1] > -1: a[start + col + 1] += 1 for i in range(n): for j in range(n): print(a[__________], end=" ") print()