5 lines
94 B
Python
5 lines
94 B
Python
n = int(input())
|
|
k = map(int, input().split())
|
|
k = [abs(i) for i in k if i < 0]
|
|
print(sum(k))
|