using System;

namespace ABC
{
    class Program
    {
        public static void Main(string[] args)
        {
			var n = 0;
			string[] s = Console.ReadLine().Split(' ');

            foreach (var ss in s) {            
				if(ss == "-")
				{
					n = n - 1;
				}
				else if (ss == "+")
				{
					n = n + 1;
				}
            }

			Console.WriteLine(n);
		}
    }
}