n = int(input())
s = []
result = [0,0,0]
for i in range(n):
k = int(input())
while not (-10000 < k < 10000):
k = int(input("Out of range. Repeat: "))
s.append(k)
for i in s:
if i > 0:
result[0] += 1
elif i < 0:
result[1] += 1
elif i == 0:
result[2] += 1
for i in result:
print(i, end=" ")
Ввод/Вывод:5
3
4
-4
-2
0
2 2 1
Мне бы кто :с
#include<iostream>
using namespace std;
int main()
{
int n = 0;
cout << "Сколько раз? " << endl;
cin >> n;
for (int i = 0; i < n; ++i)
cout << "Silence is golden" << endl;
return 0;
}