import java.util.Scanner;

class Main {
   public static void main (String[] args) {
       Scanner scanner = new Scanner(System.in);
       int x = 0;
       String S = scanner.next();

       for (int i = 0; i < 4; i++) {
           String str = S.substring(i,i+1);
           //System.out.println(str);
           if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           }
           //System.out.println(x);
       }

       System.out.println(x);
   }
} import java.util.Scanner; Scanner java.util class Main {
   public static void main (String[] args) {
       Scanner scanner = new Scanner(System.in);
       int x = 0;
       String S = scanner.next();

       for (int i = 0; i < 4; i++) {
           String str = S.substring(i,i+1);
           //System.out.println(str);
           if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           }
           //System.out.println(x);
       }

       System.out.println(x);
   }
} Main public static void main (String[] args) {
       Scanner scanner = new Scanner(System.in);
       int x = 0;
       String S = scanner.next();

       for (int i = 0; i < 4; i++) {
           String str = S.substring(i,i+1);
           //System.out.println(str);
           if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           }
           //System.out.println(x);
       }

       System.out.println(x);
   } main {
       Scanner scanner = new Scanner(System.in);
       int x = 0;
       String S = scanner.next();

       for (int i = 0; i < 4; i++) {
           String str = S.substring(i,i+1);
           //System.out.println(str);
           if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           }
           //System.out.println(x);
       }

       System.out.println(x);
   } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = 0; x 0 String S = scanner.next(); S scanner.next() scanner.next scanner for (int i = 0; i < 4; i++) {
           String str = S.substring(i,i+1);
           //System.out.println(str);
           if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           }
           //System.out.println(x);
       } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
           String str = S.substring(i,i+1);
           //System.out.println(str);
           if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           }
           //System.out.println(x);
       } {
           String str = S.substring(i,i+1);
           //System.out.println(str);
           if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           }
           //System.out.println(x);
       } String str = S.substring(i,i+1); str S.substring(i,i+1) S.substring S i i+1 i 1 if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           } str.equals("+") str.equals str "+" {
        	   x = x + 1;
           } x = x + 1 x x + 1 x 1 if (str.equals("-")) {
        	   x = x - 1;
           } str.equals("-") str.equals str "-" {
        	   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
import java.util.Scanner;

class Main {
   public static void main (String[] args) {
       Scanner scanner = new Scanner(System.in);
       int x = 0;
       String S = scanner.next();

       for (int i = 0; i < 4; i++) {
           String str = S.substring(i,i+1);
           //System.out.println(str);
           if (str.equals("+")) {
        	   x = x + 1;
           } else if (str.equals("-")) {
        	   x = x - 1;
           }
           //System.out.println(x);
       }

       System.out.println(x);
   }
}