import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int sum=0;
        for(char x:str.toCharArray())
        {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        }
        System.out.println(sum);

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int sum=0;
        for(char x:str.toCharArray())
        {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        }
        System.out.println(sum);

    }
} Main public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int sum=0;
        for(char x:str.toCharArray())
        {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        }
        System.out.println(sum);

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int sum=0;
        for(char x:str.toCharArray())
        {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        }
        System.out.println(sum);

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int sum=0; sum 0 for(char x:str.toCharArray())
        {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        } char x str.toCharArray() str.toCharArray str {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        } {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        } if(x=='+')
                sum++;
            else if(x=='-')
                sum--; x=='+' x '+' sum++ sum if(x=='-')
                sum--; x=='-' x '-' sum-- sum System.out.println(sum) System.out.println System.out System System.out sum String []args args public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int sum=0;
        for(char x:str.toCharArray())
        {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        }
        System.out.println(sum);

    }
} public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int sum=0;
        for(char x:str.toCharArray())
        {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        }
        System.out.println(sum);

    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int sum=0;
        for(char x:str.toCharArray())
        {
            if(x=='+')
                sum++;
            else if(x=='-')
                sum--;
        }
        System.out.println(sum);

    }
}
