using System;

class Program
{
	static void Main(string[] args)
    {

       int output = 0;
        string a, b, c, d;

        string plus = "+";
        string Input = Console.ReadLine();

        for(int i = 1; i < 4;i++)
        {
            if(Input[i] .Equals("+"))
            {
                output++;
            }
            else
            {
                output--;
            }
        }

        Console.WriteLine(output);

    }
}
