def do(operations):
result = 0
length = len(operations)
list_i = list(range(0,length))
for i in list_i :
if(operations[i]=="--"):
result -= 1
elif(operations[i]=="++"):
result += 1
return result
experession_list = ["++","++","--","++"]
result = do(experession_list)
print(result)# your code goes here
ZGVmIGRvKG9wZXJhdGlvbnMpOgogICAgcmVzdWx0ID0gMAogICAgbGVuZ3RoID0gbGVuKG9wZXJhdGlvbnMpCiAgICBsaXN0X2kgPSBsaXN0KHJhbmdlKDAsbGVuZ3RoKSkKICAgIGZvciBpIGluIGxpc3RfaSA6CiAgICAgICAgaWYob3BlcmF0aW9uc1tpXT09Ii0tIik6CiAgICAgICAgICAgIHJlc3VsdCAtPSAxCiAgICAgICAgZWxpZihvcGVyYXRpb25zW2ldPT0iKysiKToKICAgICAgICAgICAgcmVzdWx0ICs9IDEKICAgIHJldHVybiByZXN1bHQKICAgIAoKZXhwZXJlc3Npb25fbGlzdCA9IFsiKysiLCIrKyIsIi0tIiwiKysiXQpyZXN1bHQgPSBkbyhleHBlcmVzc2lvbl9saXN0KQpwcmludChyZXN1bHQpIyB5b3VyIGNvZGUgZ29lcyBoZXJl