using System;

namespace AtCoder_Beginner_Contest_101_A
{
    class Program
    {

        const int EATINGLENGTH = 4;
        const char STR_PLUS = '+';
        const char STR_MINUS = '-';

        static void Main(string[] args)
        {
            int eatingCount = 0;
            int eatingValue = 0;
            string[] eatingStr = System.Environment.GetCommandLineArgs();

            if (eatingStr[1].Length != EATINGLENGTH)
            {
                Console.Write(string.Format("高橋君の食べる量は{0}桁です。", EATINGLENGTH));
            }
            else
            {
                foreach(char eat_c in eatingStr[1])
                {
                    if (eat_c == STR_PLUS)
                    {
                        eatingValue++;
                    }
                    else if(eat_c == STR_MINUS)
                    {
                        eatingValue--;
                    }
                    else
                    {
                        Console.Write(string.Format("高橋君が食べれる文字列は {0} か {1} だけです。", STR_PLUS, STR_MINUS));
                        break;
                    }

                    eatingCount++;
                }
            }

            if (eatingCount == EATINGLENGTH)
            {
                Console.Write(eatingValue);
            }
        }
    }
}
