using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;

namespace atpra101A
{
    class Class1{
        static void Main()
        {
            int sum = 0;
            for (int i = 0; i < 4;i++)
            {
                var x = Console.ReadLine()[0];
                if (x == '+') sum++;
                else sum--;
            }
            Console.WriteLine(sum);
        }
    }
}
