function main()
    S = readline()
    out = 0
    print(S)
    for i in 1:length(S)
    print(S[i])
        if S[i]=='+'
            out+=1
        else
            out-=1
        end
    end
    print(out)
end
main()
