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

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

  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String g[] = new String[4];
    int answer = 0;
    g[0] = s.substring(0,1);
    g[1] = s.substring(1,2);
    g[2] = s.substring(2,3);
    g[3] = s.substring(3,4);
    for(int i =0;i<4;i++){
      if(g[i].equals("+")){
        answer = answer +1;
      }else{
        answer = answer -1;
      }
    }
    System.out.println(answer);
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String g[] = new String[4];
    int answer = 0;
    g[0] = s.substring(0,1);
    g[1] = s.substring(1,2);
    g[2] = s.substring(2,3);
    g[3] = s.substring(3,4);
    for(int i =0;i<4;i++){
      if(g[i].equals("+")){
        answer = answer +1;
      }else{
        answer = answer -1;
      }
    }
    System.out.println(answer);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String g[] = new String[4]; g new String[4] 4 int answer = 0; answer 0 g[0] = s.substring(0,1) g[0] g 0 s.substring(0,1) s.substring s 0 1 g[1] = s.substring(1,2) g[1] g 1 s.substring(1,2) s.substring s 1 2 g[2] = s.substring(2,3) g[2] g 2 s.substring(2,3) s.substring s 2 3 g[3] = s.substring(3,4) g[3] g 3 s.substring(3,4) s.substring s 3 4 for(int i =0;i<4;i++){
      if(g[i].equals("+")){
        answer = answer +1;
      }else{
        answer = answer -1;
      }
    } int i =0; int i =0; i 0 i<4 i 4 i++ i++ i {
      if(g[i].equals("+")){
        answer = answer +1;
      }else{
        answer = answer -1;
      }
    } {
      if(g[i].equals("+")){
        answer = answer +1;
      }else{
        answer = answer -1;
      }
    } if(g[i].equals("+")){
        answer = answer +1;
      }else{
        answer = answer -1;
      } g[i].equals("+") g[i].equals g[i] g i "+" {
        answer = answer +1;
      } answer = answer +1 answer answer +1 answer 1 {
        answer = answer -1;
      } answer = answer -1 answer answer -1 answer 1 System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String g[] = new String[4];
    int answer = 0;
    g[0] = s.substring(0,1);
    g[1] = s.substring(1,2);
    g[2] = s.substring(2,3);
    g[3] = s.substring(3,4);
    for(int i =0;i<4;i++){
      if(g[i].equals("+")){
        answer = answer +1;
      }else{
        answer = answer -1;
      }
    }
    System.out.println(answer);
  }
  

  
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String g[] = new String[4];
    int answer = 0;
    g[0] = s.substring(0,1);
    g[1] = s.substring(1,2);
    g[2] = s.substring(2,3);
    g[3] = s.substring(3,4);
    for(int i =0;i<4;i++){
      if(g[i].equals("+")){
        answer = answer +1;
      }else{
        answer = answer -1;
      }
    }
    System.out.println(answer);
  }
  

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

  
}