import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int count = 0;
    
    for(int j = 0; j < 4; j++){
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    }
    System.out.println(count);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int count = 0;
    
    for(int j = 0; j < 4; j++){
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int count = 0;
    
    for(int j = 0; j < 4; j++){
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int count = 0;
    
    for(int j = 0; j < 4; j++){
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    }
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int count = 0; count 0 for(int j = 0; j < 4; j++){
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    } int j = 0; int j = 0; j 0 j < 4 j 4 j++ j++ j {
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    } {
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    } if(s.charAt(j) == '+')
        count++;
      else
        count--; s.charAt(j) == '+' s.charAt(j) s.charAt s j '+' count++ count count-- count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int count = 0;
    
    for(int j = 0; j < 4; j++){
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    }
    System.out.println(count);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int count = 0;
    
    for(int j = 0; j < 4; j++){
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    }
    System.out.println(count);
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int count = 0;
    
    for(int j = 0; j < 4; j++){
      if(s.charAt(j) == '+')
        count++;
      else
        count--;
    }
    System.out.println(count);
  }
}
