# your code goes here
from random import randint
from functools import reduce
import operator
list_length = int(input('Enter number count: '))
numbers = [randint(-100,100) for _ in range(list_length)]
sum_positive = sum([number for number in numbers if number>0])
minimum_index = numbers.index(min(numbers))
maximum_index = numbers.index(max(numbers))
left,right = sorted([minimum_index, maximum_index])
product = reduce(operator.mul, numbers[left+1:right],1)
print(numbers)
print(sum_positive, product)
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmZyb20gcmFuZG9tIGltcG9ydCByYW5kaW50CmZyb20gZnVuY3Rvb2xzIGltcG9ydCByZWR1Y2UKaW1wb3J0IG9wZXJhdG9yCmxpc3RfbGVuZ3RoID0gaW50KGlucHV0KCdFbnRlciBudW1iZXIgY291bnQ6ICcpKQpudW1iZXJzID0gW3JhbmRpbnQoLTEwMCwxMDApIGZvciBfIGluIHJhbmdlKGxpc3RfbGVuZ3RoKV0Kc3VtX3Bvc2l0aXZlID0gc3VtKFtudW1iZXIgZm9yIG51bWJlciBpbiBudW1iZXJzIGlmIG51bWJlcj4wXSkKbWluaW11bV9pbmRleCA9IG51bWJlcnMuaW5kZXgobWluKG51bWJlcnMpKQptYXhpbXVtX2luZGV4ID0gbnVtYmVycy5pbmRleChtYXgobnVtYmVycykpCmxlZnQscmlnaHQgPSBzb3J0ZWQoW21pbmltdW1faW5kZXgsIG1heGltdW1faW5kZXhdKQpwcm9kdWN0ID0gcmVkdWNlKG9wZXJhdG9yLm11bCwgbnVtYmVyc1tsZWZ0KzE6cmlnaHRdLDEpCnByaW50KG51bWJlcnMpCnByaW50KHN1bV9wb3NpdGl2ZSwgcHJvZHVjdCk=