# coding:utf-8
def main():
    l = list(map(str, input().split()))
    count = 0
    for i in l:
        if i=='+':
            count = count + 1
        else:
            count = count - 1

    print(count)


if __name__ == '__main__' :
    main()