S = input()
if S =="++++":
    print(4)
elif S =="----":
    print(-4)
elif S=="+++-" or S=="++-+" or S=="+-++" or S=="-+++":
    print(1)
elif S=="---+" or S=="-+--" or S=="--+-" or S=="+---":
    print(-1)
else:
    print(0)