import atexit,io,sys,os,math
from collections import OrderedDict
buffer=io.BytesIO()
sys.stdout=buffer
@atexit.register
def write():
    sys.__stdout__.write(buffer.getvalue())


s=raw_input().strip()
n=len(s)
m=s.count('+')
print(2*m-n)