import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String S = sc.next();
      int T = 0;
      for(int i=0;i<S.length();i++){
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      }
      System.out.println(T);
    }
} 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 T = 0;
      for(int i=0;i<S.length();i++){
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      }
      System.out.println(T);
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String S = sc.next();
      int T = 0;
      for(int i=0;i<S.length();i++){
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      }
      System.out.println(T);
    } main {
		Scanner sc = new Scanner(System.in);
      String S = sc.next();
      int T = 0;
      for(int i=0;i<S.length();i++){
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      }
      System.out.println(T);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int T = 0; T 0 for(int i=0;i<S.length();i++){
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      } int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      } {
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      } if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        } (S.substring(i,i+1)).contains("+") (S.substring(i,i+1)).contains (S.substring(i,i+1)) S.substring S i i+1 i 1 "+" {
          T = T + 1;
        } T = T + 1 T T + 1 T 1 {
          T = T - 1;
        } T = T - 1 T T - 1 T 1 System.out.println(T) System.out.println System.out System System.out T String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String S = sc.next();
      int T = 0;
      for(int i=0;i<S.length();i++){
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      }
      System.out.println(T);
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String S = sc.next();
      int T = 0;
      for(int i=0;i<S.length();i++){
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      }
      System.out.println(T);
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String S = sc.next();
      int T = 0;
      for(int i=0;i<S.length();i++){
        if((S.substring(i,i+1)).contains("+")){
          T = T + 1;
        }else{
          T = T - 1;
        }
      }
      System.out.println(T);
    }
}