import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String[] a = new String[4];
        String s = sc.nextLine();
        int sum = 0;
        a = s.split("");
        for(int i = 0; i < a.length; i++) {
            // a[i] = sc.nextLine().split("");
            if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String[] a = new String[4];
        String s = sc.nextLine();
        int sum = 0;
        a = s.split("");
        for(int i = 0; i < a.length; i++) {
            // a[i] = sc.nextLine().split("");
            if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String[] a = new String[4];
        String s = sc.nextLine();
        int sum = 0;
        a = s.split("");
        for(int i = 0; i < a.length; i++) {
            // a[i] = sc.nextLine().split("");
            if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    } main {
        Scanner sc = new Scanner(System.in);
        String[] a = new String[4];
        String s = sc.nextLine();
        int sum = 0;
        a = s.split("");
        for(int i = 0; i < a.length; i++) {
            // a[i] = sc.nextLine().split("");
            if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] a = new String[4]; a new String[4] 4 String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int sum = 0; sum 0 a = s.split("") a s.split("") s.split s "" for(int i = 0; i < a.length; i++) {
            // a[i] = sc.nextLine().split("");
            if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            }
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            // a[i] = sc.nextLine().split("");
            if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            }
        } {
            // a[i] = sc.nextLine().split("");
            if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            }
        } if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            } a[i].equals("+") a[i].equals a[i] a i "+" {
                sum++;
            } sum++ sum {
                sum--;
            } sum-- sum System.out.println(sum) System.out.println System.out System System.out sum String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String[] a = new String[4];
        String s = sc.nextLine();
        int sum = 0;
        a = s.split("");
        for(int i = 0; i < a.length; i++) {
            // a[i] = sc.nextLine().split("");
            if(a[i].equals("+")){
                sum++;
            }else{
                sum--;
            }
        }
        System.out.println(sum);
    }
}