import java.util.*;
import java.math.*;
     
class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){

            String plusMinus = sc.next();
            int ans = 0;

            for(int i = 0; i < plusMinus.length(); i++){
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            }

            System.out.println(ans);

        }catch(Exception e){
            e.printStackTrace();
        }        
    }
} import java.util.*; util.* java import java.math.*; math.* java class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){

            String plusMinus = sc.next();
            int ans = 0;

            for(int i = 0; i < plusMinus.length(); i++){
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            }

            System.out.println(ans);

        }catch(Exception e){
            e.printStackTrace();
        }        
    }
} Main public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){

            String plusMinus = sc.next();
            int ans = 0;

            for(int i = 0; i < plusMinus.length(); i++){
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            }

            System.out.println(ans);

        }catch(Exception e){
            e.printStackTrace();
        }        
    } main {
        
        try(Scanner sc = new Scanner(System.in)){

            String plusMinus = sc.next();
            int ans = 0;

            for(int i = 0; i < plusMinus.length(); i++){
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            }

            System.out.println(ans);

        }catch(Exception e){
            e.printStackTrace();
        }        
    } try(Scanner sc = new Scanner(System.in)){

            String plusMinus = sc.next();
            int ans = 0;

            for(int i = 0; i < plusMinus.length(); i++){
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            }

            System.out.println(ans);

        }catch(Exception e){
            e.printStackTrace();
        } catch(Exception e){
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {

            String plusMinus = sc.next();
            int ans = 0;

            for(int i = 0; i < plusMinus.length(); i++){
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            }

            System.out.println(ans);

        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String plusMinus = sc.next(); plusMinus sc.next() sc.next sc int ans = 0; ans 0 for(int i = 0; i < plusMinus.length(); i++){
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            } int i = 0; int i = 0; i 0 i < plusMinus.length() i plusMinus.length() plusMinus.length plusMinus i++ i++ i {
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            } {
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            } String str = plusMinus.substring(i, i + 1); str plusMinus.substring(i, i + 1) plusMinus.substring plusMinus i i + 1 i 1 if(str.equals("+")) ans++;
                else ans--; str.equals("+") str.equals str "+" ans++ ans ans-- ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
import java.math.*;
     
class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){

            String plusMinus = sc.next();
            int ans = 0;

            for(int i = 0; i < plusMinus.length(); i++){
                String str = plusMinus.substring(i, i + 1);
                if(str.equals("+")) ans++;
                else ans--;
            }

            System.out.println(ans);

        }catch(Exception e){
            e.printStackTrace();
        }        
    }
}