import java.util.*;
public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
	  int cnt = 0;
      for(char c : s.toCharArray())
        	if(c == '-') cnt++;
      System.out.println(s.length() - cnt - cnt);
  }
} import java.util.*; util.* java public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
	  int cnt = 0;
      for(char c : s.toCharArray())
        	if(c == '-') cnt++;
      System.out.println(s.length() - cnt - cnt);
  }
} Main public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
	  int cnt = 0;
      for(char c : s.toCharArray())
        	if(c == '-') cnt++;
      System.out.println(s.length() - cnt - cnt);
  } main { 
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
	  int cnt = 0;
      for(char c : s.toCharArray())
        	if(c == '-') cnt++;
      System.out.println(s.length() - cnt - cnt);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int cnt = 0; cnt 0 for(char c : s.toCharArray())
        	if(c == '-') cnt++; char c s.toCharArray() s.toCharArray s if(c == '-') cnt++; if(c == '-') cnt++; c == '-' c '-' cnt++ cnt System.out.println(s.length() - cnt - cnt) System.out.println System.out System System.out s.length() - cnt - cnt s.length() - cnt - cnt s.length() s.length s cnt cnt String[] args args public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
	  int cnt = 0;
      for(char c : s.toCharArray())
        	if(c == '-') cnt++;
      System.out.println(s.length() - cnt - cnt);
  }
} public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
	  int cnt = 0;
      for(char c : s.toCharArray())
        	if(c == '-') cnt++;
      System.out.println(s.length() - cnt - cnt);
  }
} Main
import java.util.*;
public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
	  int cnt = 0;
      for(char c : s.toCharArray())
        	if(c == '-') cnt++;
      System.out.println(s.length() - cnt - cnt);
  }
}