given_list = [4, 3, 2, -1, 5, 6,-3,-9, -4]
total = 0

for element in given_list:
    if element < 0:
        continue
    total += element
print total 

total1 = 0
i = 0
while True:
    if given_list[i] < 0
        continue
    total1 += given_list[i]
    i += 1
    if i > len(given_list):
        break
print total1
    
