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)
ZGVmIGRvKG9wZXJhdGlvbnMpOgogICAgcmVzdWx0ID0gMAogICAgbGVuZ3RoID0gbGVuKG9wZXJhdGlvbnMpCiAgICBsaXN0X2kgPSBsaXN0KHJhbmdlKDAsbGVuZ3RoKSkKICAgIGZvciBpIGluIGxpc3RfaSA6CiAgICAgICAgaWYob3BlcmF0aW9uc1tpXT09Ii0tIik6CiAgICAgICAgICAgIHJlc3VsdCAtPSAxCiAgICAgICAgZWxpZihvcGVyYXRpb25zW2ldPT0iKysiKToKICAgICAgICAgICAgcmVzdWx0ICs9IDEKICAgIHJldHVybiByZXN1bHQKICAgIAoKZXhwZXJlc3Npb25fbGlzdCA9IGV2YWwoaW5wdXQoKSkgICAjaWYgaW5wdXQgYXMgYSBsaXN0IGxpa2UgdGhpcyA6ICIrKyIsICIrKyIsICItLSIsICIrKyIgb3IgWyIrKyIsICIrKyIsICItLSIsICIrKyJdCiIiImV4cGVyZXNzaW9uX2xpc3QgPSBpbnB1dCgpLnNwbGl0KCkiIiIgI2lmIGlucHV0IHNwYWNlZCBsaWtlIHRoaXMgOiArKyArKyAtLSArKwoKcmVzdWx0ID0gZG8oZXhwZXJlc3Npb25fbGlzdCkKcHJpbnQocmVzdWx0KQ==