using System;

Class MainClass{
  public static void Main(string[] args){
    int x = 0;
    string s = Console.ReadLine();
    string[] c = new string[4];
    c[0] = s.Substring(0,1);
    c[1] = s.Substring(1,1);
    c[2] = s.Substring(2,1);
    c[3] = s.Substring(3,1);

    for(int i = 0; i < 4; i++){
      if(c[i] == "+"){x++;}else{x--;}
    }
    Console.WriteLine(x);
  }
}