def Ucitajvrednost(a, b, c):
a, b = [int(i) for i in input().split()]
if a <= 0 or b <= 0:
exit()
c = [int(i) for i in input().split()]
return a, b, c
vrsta = 0
kolona = 0
potezi = []
vrsta, kolona, potezi = Ucitajvrednost(vrsta, kolona, potezi)
print(kolona)
matrica = [[0]*kolona]*vrsta
print(matrica)
ZGVmIFVjaXRhanZyZWRub3N0KGEsIGIsIGMpOgoJYSwgYiA9IFtpbnQoaSkgZm9yIGkgaW4gaW5wdXQoKS5zcGxpdCgpXQoJaWYgYSA8PSAwIG9yIGIgPD0gMDoKCQlleGl0KCkKCWMgPSBbaW50KGkpIGZvciBpIGluIGlucHV0KCkuc3BsaXQoKV0KCXJldHVybiBhLCBiLCBjCnZyc3RhID0gMAprb2xvbmEgPSAwCnBvdGV6aSA9IFtdCnZyc3RhLCBrb2xvbmEsIHBvdGV6aSA9IFVjaXRhanZyZWRub3N0KHZyc3RhLCBrb2xvbmEsIHBvdGV6aSkKcHJpbnQoa29sb25hKQptYXRyaWNhID0gW1swXSprb2xvbmFdKnZyc3RhCnByaW50KG1hdHJpY2Ep
5
[[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]