using System;
 
class Program
{
  static void Main(string[] args)
  {
    string s = Console.ReadLine();
    
    int count = 0;
    for(int i = 0; i < 4; i++){
      if(s[0] = "+") count++;
      else count--;
    }
    
    Console.WriteLine("{0}", count);
  }
}