import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String e[] = sc.nextLine().split("");
    int count = 0;
    for (int i = 0 ; i < e.length; i++){
        if(e[i].equals("+"))  count++;    
    }
    System.out.println(2*count-4);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String e[] = sc.nextLine().split("");
    int count = 0;
    for (int i = 0 ; i < e.length; i++){
        if(e[i].equals("+"))  count++;    
    }
    System.out.println(2*count-4);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String e[] = sc.nextLine().split("");
    int count = 0;
    for (int i = 0 ; i < e.length; i++){
        if(e[i].equals("+"))  count++;    
    }
    System.out.println(2*count-4);
  } main {
    Scanner sc = new Scanner(System.in);
    String e[] = sc.nextLine().split("");
    int count = 0;
    for (int i = 0 ; i < e.length; i++){
        if(e[i].equals("+"))  count++;    
    }
    System.out.println(2*count-4);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String e[] = sc.nextLine().split(""); e sc.nextLine().split("") sc.nextLine().split sc.nextLine() sc.nextLine sc "" int count = 0; count 0 for (int i = 0 ; i < e.length; i++){
        if(e[i].equals("+"))  count++;    
    } int i = 0 ; int i = 0 ; i 0 i < e.length i e.length e e.length i++ i++ i {
        if(e[i].equals("+"))  count++;    
    } {
        if(e[i].equals("+"))  count++;    
    } if(e[i].equals("+"))  count++; e[i].equals("+") e[i].equals e[i] e i "+" count++ count System.out.println(2*count-4) System.out.println System.out System System.out 2*count-4 2*count 2 count 4 String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String e[] = sc.nextLine().split("");
    int count = 0;
    for (int i = 0 ; i < e.length; i++){
        if(e[i].equals("+"))  count++;    
    }
    System.out.println(2*count-4);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String e[] = sc.nextLine().split("");
    int count = 0;
    for (int i = 0 ; i < e.length; i++){
        if(e[i].equals("+"))  count++;    
    }
    System.out.println(2*count-4);
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String e[] = sc.nextLine().split("");
    int count = 0;
    for (int i = 0 ; i < e.length; i++){
        if(e[i].equals("+"))  count++;    
    }
    System.out.println(2*count-4);
  }
}