s = int(input())
n = 0
if s[0] == "+" :
    n += 1
else:
    n -= 1
if s[1] == "+" :
    n += 1
else:
    n -= 1
if s[2] == "+" :
    n += 1
else:
    n -= 1
if s[3] == "+" :
    n += 1
else:
    n -= 1
print(n)