import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sArr = sc.next().split("");

        int num = 0;
        for(int i = 0; i < sArr.length; i++){
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        }
        System.out.println(num);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sArr = sc.next().split("");

        int num = 0;
        for(int i = 0; i < sArr.length; i++){
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        }
        System.out.println(num);
        
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sArr = sc.next().split("");

        int num = 0;
        for(int i = 0; i < sArr.length; i++){
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        }
        System.out.println(num);
        
    } main {
        Scanner sc = new Scanner(System.in);
        String[] sArr = sc.next().split("");

        int num = 0;
        for(int i = 0; i < sArr.length; i++){
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        }
        System.out.println(num);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] sArr = sc.next().split(""); sArr sc.next().split("") sc.next().split sc.next() sc.next sc "" int num = 0; num 0 for(int i = 0; i < sArr.length; i++){
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        } int i = 0; int i = 0; i 0 i < sArr.length i sArr.length sArr sArr.length i++ i++ i {
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        } {
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        } if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            } sArr[i].equals("+") sArr[i].equals sArr[i] sArr i "+" {
                num++;
            } num++ num {
                num--;
            } num-- num System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sArr = sc.next().split("");

        int num = 0;
        for(int i = 0; i < sArr.length; i++){
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        }
        System.out.println(num);
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sArr = sc.next().split("");

        int num = 0;
        for(int i = 0; i < sArr.length; i++){
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        }
        System.out.println(num);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sArr = sc.next().split("");

        int num = 0;
        for(int i = 0; i < sArr.length; i++){
            if(sArr[i].equals("+")){
                num++;
            }
            else{
                num--;
            }
        }
        System.out.println(num);
        
    }
}
