import java.util.*;
public class Main{
 
  public static void main(String[] args){
   Scanner scanner = new Scanner(System.in);
    String[] S = scanner.nextLine().split("");
    int mind = 0;
    for(String x : S){
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    }
    System.out.println(mind);
  }
  
} import java.util.*; util.* java public class Main{
 
  public static void main(String[] args){
   Scanner scanner = new Scanner(System.in);
    String[] S = scanner.nextLine().split("");
    int mind = 0;
    for(String x : S){
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    }
    System.out.println(mind);
  }
  
} Main public static void main(String[] args){
   Scanner scanner = new Scanner(System.in);
    String[] S = scanner.nextLine().split("");
    int mind = 0;
    for(String x : S){
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    }
    System.out.println(mind);
  } main {
   Scanner scanner = new Scanner(System.in);
    String[] S = scanner.nextLine().split("");
    int mind = 0;
    for(String x : S){
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    }
    System.out.println(mind);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] S = scanner.nextLine().split(""); S scanner.nextLine().split("") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner "" int mind = 0; mind 0 for(String x : S){
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    } String x S {
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    } {
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    } if(x.equals("+")){
      mind++;
      }else{
      mind--;
      } x.equals("+") x.equals x "+" {
      mind++;
      } mind++ mind {
      mind--;
      } mind-- mind System.out.println(mind) System.out.println System.out System System.out mind String[] args args public class Main{
 
  public static void main(String[] args){
   Scanner scanner = new Scanner(System.in);
    String[] S = scanner.nextLine().split("");
    int mind = 0;
    for(String x : S){
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    }
    System.out.println(mind);
  }
  
} public class Main{
 
  public static void main(String[] args){
   Scanner scanner = new Scanner(System.in);
    String[] S = scanner.nextLine().split("");
    int mind = 0;
    for(String x : S){
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    }
    System.out.println(mind);
  }
  
} Main
import java.util.*;
public class Main{
 
  public static void main(String[] args){
   Scanner scanner = new Scanner(System.in);
    String[] S = scanner.nextLine().split("");
    int mind = 0;
    for(String x : S){
      if(x.equals("+")){
      mind++;
      }else{
      mind--;
      }
    }
    System.out.println(mind);
  }
  
}