using System;
using static System.Console;
using static System.Math;
using System.Linq;

class Program
{

    static void Main()
    {
        string input = ReadLine();
        int res = 0;
        for(int i = 0;i<input.Length;i++)
        {
            if (input[i] == '+')
            {
                res++;
            }
            else { res--; }
        }
        WriteLine(res);
    }
}
