m,n = map(int,input().split())
ss = ''
s0 = ''
for i in range(n-3):
ss += ' '
for i in range(n):
s0 += '0'
print(s0)
for i in range(m-2):
print('0', end='')
print(ss, end=' ')
print('0')
Объяснение:
m,n = map(int,input().split())
ss = ''
s0 = ''
for i in range(n-3):
ss += ' '
for i in range(n):
s0 += '0'
print(s0)
for i in range(m-2):
print('0', end='')
print(ss, end=' ')
print('0')
print(s0)
Объяснение: