lst = []
for i in range(int(input('Введите кол-во строк в матрице: '))):
lst.append(list(map(int, input().split())))
def zero(x):
k = 0
for q in x:
if 0 not in q:
k += 1
return k
def mdgt(x):
m = []
for q in x:
m += list(set(q))
m.sort(reverse=True)
for j in range(len(m)-1):
if m[j] == m[j+1]:
return m[j]
print(f'Кол-во строк с нулями: {zero(lst)}')
print(f'Самое большое повторяющееся число матрицы: {mdgt(lst)}')
bHN0ID0gW10KZm9yIGkgaW4gcmFuZ2UoaW50KGlucHV0KCfQktCy0LXQtNC40YLQtSDQutC+0Lst0LLQviDRgdGC0YDQvtC6INCyINC80LDRgtGA0LjRhtC1OiAnKSkpOgogICAgbHN0LmFwcGVuZChsaXN0KG1hcChpbnQsIGlucHV0KCkuc3BsaXQoKSkpKQogCmRlZiB6ZXJvKHgpOgogICAgayA9IDAKICAgIGZvciBxIGluIHg6CiAgICAgICAgaWYgMCBub3QgaW4gcToKICAgICAgICAgICAgayArPSAxCiAgICByZXR1cm4gawogCmRlZiBtZGd0KHgpOgogICAgbSA9IFtdCiAgICBmb3IgcSBpbiB4OgogICAgICAgIG0gKz0gbGlzdChzZXQocSkpCiAgICBtLnNvcnQocmV2ZXJzZT1UcnVlKQogICAgZm9yIGogaW4gcmFuZ2UobGVuKG0pLTEpOgogICAgICAgIGlmIG1bal0gPT0gbVtqKzFdOgogICAgICAgICAgICByZXR1cm4gbVtqXQogCnByaW50KGYn0JrQvtC7LdCy0L4g0YHRgtGA0L7QuiDRgSDQvdGD0LvRj9C80Lg6IHt6ZXJvKGxzdCl9JykKcHJpbnQoZifQodCw0LzQvtC1INCx0L7Qu9GM0YjQvtC1INC/0L7QstGC0L7RgNGP0Y7RidC10LXRgdGPINGH0LjRgdC70L4g0LzQsNGC0YDQuNGG0Ys6IHttZGd0KGxzdCl9Jyk=