'''
AtCoder Beginner Contest 101
A - Eating Symbols Easy
'''

from sys import stdin
input = stdin.readline

S = input()
n = 0

for i in S:
    if i == '+':
        n += 1
    else:
        n -= 1

print(n)