sing System;
using static System.Console;

class Program
{
    public static void Main()
    {
        string s = ReadLine();
        int ans = 0;
        for (int i = 0; i < 4; i++){
            char c = s[i];

            if (c == '+')
            {
                ans++;
            }
            else
            {
                ans--;
            }

        }
        WriteLine(ans);
    }
}
