import java.util.*;
import java.io.*;

public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        String s = in.next();
        int n = s.length();
       
        int count=0;
        for(int i=0 ; i<n ; i++){
            if(s.charAt(i)=='+') count++;
            else count--;
        }
        System.out.println(count);
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        String s = in.next();
        int n = s.length();
       
        int count=0;
        for(int i=0 ; i<n ; i++){
            if(s.charAt(i)=='+') count++;
            else count--;
        }
        System.out.println(count);
    }
} Main public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        String s = in.next();
        int n = s.length();
       
        int count=0;
        for(int i=0 ; i<n ; i++){
            if(s.charAt(i)=='+') count++;
            else count--;
        }
        System.out.println(count);
    } main {
        Scanner in = new Scanner(System.in);
        //test cases
        String s = in.next();
        int n = s.length();
       
        int count=0;
        for(int i=0 ; i<n ; i++){
            if(s.charAt(i)=='+') count++;
            else count--;
        }
        System.out.println(count);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String s = in.next(); s in.next() in.next in int n = s.length(); n s.length() s.length s int count=0; count 0 for(int i=0 ; i<n ; i++){
            if(s.charAt(i)=='+') count++;
            else count--;
        } int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
            if(s.charAt(i)=='+') count++;
            else count--;
        } {
            if(s.charAt(i)=='+') count++;
            else count--;
        } if(s.charAt(i)=='+') count++;
            else count--; s.charAt(i)=='+' s.charAt(i) s.charAt s i '+' count++ count count-- count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        String s = in.next();
        int n = s.length();
       
        int count=0;
        for(int i=0 ; i<n ; i++){
            if(s.charAt(i)=='+') count++;
            else count--;
        }
        System.out.println(count);
    }
} public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        String s = in.next();
        int n = s.length();
       
        int count=0;
        for(int i=0 ; i<n ; i++){
            if(s.charAt(i)=='+') count++;
            else count--;
        }
        System.out.println(count);
    }
} Main
import java.util.*;
import java.io.*;

public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        String s = in.next();
        int n = s.length();
       
        int count=0;
        for(int i=0 ; i<n ; i++){
            if(s.charAt(i)=='+') count++;
            else count--;
        }
        System.out.println(count);
    }
}