//ｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｹｰｰｰｰｯ!!!wwwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwwｺｹｯwwwｺｹｯｺｯwwwｺｹｰｰｰｰｯ!!!wwwwwｺｹｯｺｯｯｺｰｰｰｰ!!!!!!wwwwwwwwwww
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int n = 0;
        for(int i = 0 ; i < 4 ; i++){
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        }
        System.out.println(-1 * n);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int n = 0;
        for(int i = 0 ; i < 4 ; i++){
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        }
        System.out.println(-1 * n);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int n = 0;
        for(int i = 0 ; i < 4 ; i++){
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        }
        System.out.println(-1 * n);
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int n = 0;
        for(int i = 0 ; i < 4 ; i++){
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        }
        System.out.println(-1 * n);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int n = 0; n 0 for(int i = 0 ; i < 4 ; i++){
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        } int i = 0 ; int i = 0 ; i 0 i < 4 i 4 i++ i++ i {
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        } {
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        } if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            } s.charAt(i) == '-' s.charAt(i) s.charAt s i '-' {
                n++;
            } n++ n {
                n--;
            } n-- n System.out.println(-1 * n) System.out.println System.out System System.out -1 * n -1 1 n String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int n = 0;
        for(int i = 0 ; i < 4 ; i++){
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        }
        System.out.println(-1 * n);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int n = 0;
        for(int i = 0 ; i < 4 ; i++){
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        }
        System.out.println(-1 * n);
    }
} Main
//ｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｹｰｰｰｰｯ!!!wwwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwwｺｹｯwwwｺｹｯｺｯwwwｺｹｰｰｰｰｯ!!!wwwwwｺｹｯｺｯｯｺｰｰｰｰ!!!!!!wwwwwwwwwww
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int n = 0;
        for(int i = 0 ; i < 4 ; i++){
            if(s.charAt(i) == '-'){
                n++;
            }else{
                n--;
            }
        }
        System.out.println(-1 * n);
    }
}