import java.util.Scanner;

public class Main {
    public static void main(String[] args){

        Scanner sc =new Scanner(System.in);

        String S = sc.next();

        int pura =0;
        int mai = 0;

        for (int i=0; i<4; i++) {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        }
        System.out.println(pura - mai);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){

        Scanner sc =new Scanner(System.in);

        String S = sc.next();

        int pura =0;
        int mai = 0;

        for (int i=0; i<4; i++) {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        }
        System.out.println(pura - mai);
    }
} Main public static void main(String[] args){

        Scanner sc =new Scanner(System.in);

        String S = sc.next();

        int pura =0;
        int mai = 0;

        for (int i=0; i<4; i++) {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        }
        System.out.println(pura - mai);
    } main {

        Scanner sc =new Scanner(System.in);

        String S = sc.next();

        int pura =0;
        int mai = 0;

        for (int i=0; i<4; i++) {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        }
        System.out.println(pura - mai);
    } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int pura =0; pura 0 int mai = 0; mai 0 for (int i=0; i<4; i++) {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        } {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        } if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          } S.charAt(i) == '+' S.charAt(i) S.charAt S i '+' {
            pura += 1;
          } pura += 1 pura 1 if (S.charAt(i) == '-'){
            mai += 1;
          } S.charAt(i) == '-' S.charAt(i) S.charAt S i '-' {
            mai += 1;
          } mai += 1 mai 1 System.out.println(pura - mai) System.out.println System.out System System.out pura - mai pura mai String[] args args public class Main {
    public static void main(String[] args){

        Scanner sc =new Scanner(System.in);

        String S = sc.next();

        int pura =0;
        int mai = 0;

        for (int i=0; i<4; i++) {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        }
        System.out.println(pura - mai);
    }
} public class Main {
    public static void main(String[] args){

        Scanner sc =new Scanner(System.in);

        String S = sc.next();

        int pura =0;
        int mai = 0;

        for (int i=0; i<4; i++) {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        }
        System.out.println(pura - mai);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){

        Scanner sc =new Scanner(System.in);

        String S = sc.next();

        int pura =0;
        int mai = 0;

        for (int i=0; i<4; i++) {
          if (S.charAt(i) == '+'){
            pura += 1;
          }else if (S.charAt(i) == '-'){
            mai += 1;
          }
        }
        System.out.println(pura - mai);
    }
}
