import java.util.Scanner;
import java.util.Arrays;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int Ans = 0;
        String S = sc.next();
        char[] C = S.toCharArray();
        for (int i=0;i<4;i++){
            Ans += (C[i]=='+')? 1:-1;
        }
        System.out.println(Ans);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int Ans = 0;
        String S = sc.next();
        char[] C = S.toCharArray();
        for (int i=0;i<4;i++){
            Ans += (C[i]=='+')? 1:-1;
        }
        System.out.println(Ans);
        sc.close();
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int Ans = 0;
        String S = sc.next();
        char[] C = S.toCharArray();
        for (int i=0;i<4;i++){
            Ans += (C[i]=='+')? 1:-1;
        }
        System.out.println(Ans);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int Ans = 0;
        String S = sc.next();
        char[] C = S.toCharArray();
        for (int i=0;i<4;i++){
            Ans += (C[i]=='+')? 1:-1;
        }
        System.out.println(Ans);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int Ans = 0; Ans 0 String S = sc.next(); S sc.next() sc.next sc char[] C = S.toCharArray(); C S.toCharArray() S.toCharArray S for (int i=0;i<4;i++){
            Ans += (C[i]=='+')? 1:-1;
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            Ans += (C[i]=='+')? 1:-1;
        } {
            Ans += (C[i]=='+')? 1:-1;
        } Ans += (C[i]=='+')? 1:-1 Ans (C[i]=='+')? 1:-1 (C[i]=='+') C[i] C i '+' 1 -1 1 System.out.println(Ans) System.out.println System.out System System.out Ans sc.close() sc.close sc String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int Ans = 0;
        String S = sc.next();
        char[] C = S.toCharArray();
        for (int i=0;i<4;i++){
            Ans += (C[i]=='+')? 1:-1;
        }
        System.out.println(Ans);
        sc.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int Ans = 0;
        String S = sc.next();
        char[] C = S.toCharArray();
        for (int i=0;i<4;i++){
            Ans += (C[i]=='+')? 1:-1;
        }
        System.out.println(Ans);
        sc.close();
    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int Ans = 0;
        String S = sc.next();
        char[] C = S.toCharArray();
        for (int i=0;i<4;i++){
            Ans += (C[i]=='+')? 1:-1;
        }
        System.out.println(Ans);
        sc.close();
    }
}