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

public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        String S=sc.next();
        char[] s=S.toCharArray();
        int ans=0;
        for(int i=0;i<4;i++){
            if(s[i]=='-'){
              ans--;  
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    }

} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        String S=sc.next();
        char[] s=S.toCharArray();
        int ans=0;
        for(int i=0;i<4;i++){
            if(s[i]=='-'){
              ans--;  
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    }

} Main public static void main(String[] args) {
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args void solve() {
        Scanner sc = new Scanner(System.in);
        String S=sc.next();
        char[] s=S.toCharArray();
        int ans=0;
        for(int i=0;i<4;i++){
            if(s[i]=='-'){
              ans--;  
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    } solve {
        Scanner sc = new Scanner(System.in);
        String S=sc.next();
        char[] s=S.toCharArray();
        int ans=0;
        for(int i=0;i<4;i++){
            if(s[i]=='-'){
              ans--;  
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S=sc.next(); S sc.next() sc.next sc char[] s=S.toCharArray(); s S.toCharArray() S.toCharArray S 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++;
            } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        String S=sc.next();
        char[] s=S.toCharArray();
        int ans=0;
        for(int i=0;i<4;i++){
            if(s[i]=='-'){
              ans--;  
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    }

} public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        String S=sc.next();
        char[] s=S.toCharArray();
        int ans=0;
        for(int i=0;i<4;i++){
            if(s[i]=='-'){
              ans--;  
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    }

} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {

    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        String S=sc.next();
        char[] s=S.toCharArray();
        int ans=0;
        for(int i=0;i<4;i++){
            if(s[i]=='-'){
              ans--;  
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    }

}