import sys
from collections import deque
import copy

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    S = read_func().strip()
    a = 0
    for s in S:
        if s == "-":
            a -= 1
        elif s =="+":
            a += 1

    print a

if __name__ == '__main__':
    main()