using System;

namespace AtTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            int number = 0;
            for (int i = 0; i < input.Length; i++)
            {
                if (input[i] == '+')
                {
                    number++;
                }
                else
                {
                    number--;
                }
            }

            Console.WriteLine(number);
        }
    }
}
