#!/usr/bin/env python3

total = 0
n = 10
i = 0

while i < n:
    p = int(input())
    if p > 0:
        total = total + p
    i = i + 1

print(total)

#!/usr/bin/env python3

total = 0
n = 10
i = 0

while i < n:
    p = int(input())
    if p > 0:
        total = total + p
    i = i + 1

print(total)

#!/usr/bin/env python3