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 = eval(input()) #if input as a list like this : "++", "++", "--", "++" or ["++", "++", "--", "++"]
"""experession_list = input().split()""" #if input spaced like this : ++ ++ -- ++
result = do(experession_list)
print(result)
ZGVmIGRvKG9wZXJhdGlvbnMpOgogICAgcmVzdWx0ID0gMAogICAgbGVuZ3RoID0gbGVuKG9wZXJhdGlvbnMpCiAgICBsaXN0X2kgPSBsaXN0KHJhbmdlKDAsbGVuZ3RoKSkKICAgIGZvciBpIGluIGxpc3RfaSA6CiAgICAgICAgaWYob3BlcmF0aW9uc1tpXT09Ii0tIik6CiAgICAgICAgICAgIHJlc3VsdCAtPSAxCiAgICAgICAgZWxpZihvcGVyYXRpb25zW2ldPT0iKysiKToKICAgICAgICAgICAgcmVzdWx0ICs9IDEKICAgIHJldHVybiByZXN1bHQKIAogCmV4cGVyZXNzaW9uX2xpc3QgPSBldmFsKGlucHV0KCkpICAgI2lmIGlucHV0IGFzIGEgbGlzdCBsaWtlIHRoaXMgOiAiKysiLCAiKysiLCAiLS0iLCAiKysiIG9yIFsiKysiLCAiKysiLCAiLS0iLCAiKysiXQoiIiJleHBlcmVzc2lvbl9saXN0ID0gaW5wdXQoKS5zcGxpdCgpIiIiICNpZiBpbnB1dCBzcGFjZWQgbGlrZSB0aGlzIDogKysgKysgLS0gKysKIApyZXN1bHQgPSBkbyhleHBlcmVzc2lvbl9saXN0KQpwcmludChyZXN1bHQpCgo=