count = 0
summ = 0
a = [-5,8,1,7,-2,6]
for i in a:
if i < 0:
print(i)
count += 1
summ -= i
print(f"кол-во = {count} | сумма = {summ}")
count = 0
summ = 0
a = [-5,8,1,7,-2,6]
for i in a:
if i < 0:
print(i)
count += 1
summ -= i
print(f"кол-во = {count} | сумма = {summ}")