using System;
using System.Linq;

namespace A
{
    class Program
    {
        static void Main(string[] args)
        {
            var s = Console.ReadLine().ToCharArray();

            int sum = 0;

            foreach(var x in s)
            {
                x.Equals('+')? sum++ : sum--;
            }
        }
    }
}
