# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

S = sr()
plus = S.count('+')
minus = 4 - plus
answer = plus - minus
print(answer)

413cf248edc85c130edc8995d19e45927ef93805
<mask token>

<mask token>
print(answer)

<mask token>
sr = lambda : sys.stdin.readline().rstrip()
ir = lambda : int(sr())
lr = lambda : list(map(int, sr().split()))
S = sr()
plus = S.count('+')
minus = 4 - plus
answer = plus - minus
print(answer)

import sys
sr = lambda : sys.stdin.readline().rstrip()
ir = lambda : int(sr())
lr = lambda : list(map(int, sr().split()))
S = sr()
plus = S.count('+')
minus = 4 - plus
answer = plus - minus
print(answer)

# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

S = sr()
plus = S.count('+')
minus = 4 - plus
answer = plus - minus
print(answer)
