# Python 3.x
import numpy
# Вводим массив случайных целых чисел диапазона от -1000 до 1000.
array=numpy.array((numpy.random.random(30) * 2 - 1) * 1000, numpy.int)
print(array)
# Считаем сумму среза массива по условию нечетности элементов.
sumary=numpy.sum(array[array % 2 != 0])
print("Sumary: ", sumary)
#
A=int(input("A: "))
indexs=numpy.where(array > A)[0]
result=[str(index) for index in indexs] # для метода join требуются строковые значения.
print(f"Here indexs, more that {A}: ", ', '.join(result))
#
k=int(input("k: "))
positives=array[array >= 0]
required=positives[positives % k == 0]
print(len(required), f" positive items divisible {k}")
counter, i, N:integer;
mas:array[1..9999] of integer;
begin
readln(N);
for i:=1 to N do
readln(mas[i]);
for i:=1 to N do
if mas[i]<0 then
mas[i]:=0
else
counter:=counter+1;
for i:=1 to N do
write(mas[i],' ');
end.