import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        String ss = inp.next();
        char s[] = ss.toCharArray();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i] == '+') ans++;
            else ans--;
        }
        System.out.println(ans);
        inp.close();
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        String ss = inp.next();
        char s[] = ss.toCharArray();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i] == '+') ans++;
            else ans--;
        }
        System.out.println(ans);
        inp.close();
    }
} Main public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        String ss = inp.next();
        char s[] = ss.toCharArray();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i] == '+') ans++;
            else ans--;
        }
        System.out.println(ans);
        inp.close();
    } main {
        Scanner inp = new Scanner(System.in);
        String ss = inp.next();
        char s[] = ss.toCharArray();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i] == '+') ans++;
            else ans--;
        }
        System.out.println(ans);
        inp.close();
    } Scanner inp = new Scanner(System.in); inp new Scanner(System.in) String ss = inp.next(); ss inp.next() inp.next inp char s[] = ss.toCharArray(); s ss.toCharArray() ss.toCharArray ss int ans = 0; ans 0 for (int i = 0; i < 4; i++) {
            if (s[i] == '+') ans++;
            else ans--;
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            if (s[i] == '+') ans++;
            else ans--;
        } {
            if (s[i] == '+') ans++;
            else ans--;
        } if (s[i] == '+') ans++;
            else ans--; s[i] == '+' s[i] s i '+' ans++ ans ans-- ans System.out.println(ans) System.out.println System.out System System.out ans inp.close() inp.close inp String args[] args
import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        String ss = inp.next();
        char s[] = ss.toCharArray();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (s[i] == '+') ans++;
            else ans--;
        }
        System.out.println(ans);
        inp.close();
    }
}
