neg = 0
summ = 0
for i in range(10):
x = int(input())
if x < 0:
neg += 1
if x > 0 and x % 3 == 0:
summ += x
print(neg, summ)
Объяснение:
neg = 0
summ = 0
for i in range(10):
x = int(input())
if x < 0:
neg += 1
if x > 0 and x % 3 == 0:
summ += x
print(neg, summ)
Объяснение: