import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int x = 0;
    String str = scan.next();
    
    for (int i = 0; i <= 3; i++) {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    }
    
    System.out.println(x);
  }
} import java.util.*; util.* java public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int x = 0;
    String str = scan.next();
    
    for (int i = 0; i <= 3; i++) {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    }
    
    System.out.println(x);
  }
} Main public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int x = 0;
    String str = scan.next();
    
    for (int i = 0; i <= 3; i++) {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    }
    
    System.out.println(x);
  } main {
    
    Scanner scan = new Scanner(System.in);
    int x = 0;
    String str = scan.next();
    
    for (int i = 0; i <= 3; i++) {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    }
    
    System.out.println(x);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = 0; x 0 String str = scan.next(); str scan.next() scan.next scan for (int i = 0; i <= 3; i++) {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    } int i = 0; int i = 0; i 0 i <= 3 i 3 i++ i++ i {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    } {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    } char ch = str.charAt(i); ch str.charAt(i) str.charAt str i if (ch == '+') {
        x = x + 1;
      } ch == '+' ch '+' {
        x = x + 1;
      } x = x + 1 x x + 1 x 1 if (ch == '-') {
        x = x - 1;
      } ch == '-' ch '-' {
        x = x - 1;
      } x = x - 1 x x - 1 x 1 System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int x = 0;
    String str = scan.next();
    
    for (int i = 0; i <= 3; i++) {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    }
    
    System.out.println(x);
  }
} public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int x = 0;
    String str = scan.next();
    
    for (int i = 0; i <= 3; i++) {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    }
    
    System.out.println(x);
  }
} Main
import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int x = 0;
    String str = scan.next();
    
    for (int i = 0; i <= 3; i++) {
      char ch = str.charAt(i);
      
      if (ch == '+') {
        x = x + 1;
      }
      
      if (ch == '-') {
        x = x - 1;
      }
    }
    
    System.out.println(x);
  }
}
