import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      int sum = 0;
      for(int i = 0;i < 4; i++){
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      }
      System.out.println(sum);
      sc.close();
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      int sum = 0;
      for(int i = 0;i < 4; i++){
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      }
      System.out.println(sum);
      sc.close();
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      int sum = 0;
      for(int i = 0;i < 4; i++){
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      }
      System.out.println(sum);
      sc.close();
    } main {
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      int sum = 0;
      for(int i = 0;i < 4; i++){
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      }
      System.out.println(sum);
      sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int sum = 0; sum 0 for(int i = 0;i < 4; i++){
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      } {
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      } String s = str.substring(i,i+1); s str.substring(i,i+1) str.substring str i i+1 i 1 if(s.equals("+")) sum++; s.equals("+") s.equals s "+" sum++ sum if(s.equals("-")) sum--; s.equals("-") s.equals s "-" sum-- sum System.out.println(sum) System.out.println System.out System System.out sum sc.close() sc.close sc String[] args args public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      int sum = 0;
      for(int i = 0;i < 4; i++){
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      }
      System.out.println(sum);
      sc.close();
    }
} public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      int sum = 0;
      for(int i = 0;i < 4; i++){
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      }
      System.out.println(sum);
      sc.close();
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String str = sc.next();
      int sum = 0;
      for(int i = 0;i < 4; i++){
      	String s = str.substring(i,i+1);
        if(s.equals("+")) sum++;
        if(s.equals("-")) sum--;
      }
      System.out.println(sum);
      sc.close();
    }
}
