import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception
    {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] = S.split("");
        int sum = 0;
        for(int i=0;i<str.length;i++)
        {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        }
        System.out.println(sum);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception
    {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] = S.split("");
        int sum = 0;
        for(int i=0;i<str.length;i++)
        {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        }
        System.out.println(sum);
    }
} Main public static void main(String[] args) throws Exception
    {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] = S.split("");
        int sum = 0;
        for(int i=0;i<str.length;i++)
        {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        }
        System.out.println(sum);
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] = S.split("");
        int sum = 0;
        for(int i=0;i<str.length;i++)
        {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        }
        System.out.println(sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String str[] = S.split(""); str S.split("") S.split S "" int sum = 0; sum 0 for(int i=0;i<str.length;i++)
        {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        } int i=0; int i=0; i 0 i<str.length i str.length str str.length i++ i++ i {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        } {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        } if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            } str[i].equals("+") str[i].equals str[i] str i "+" {
                sum++;
            } sum++ sum if(str[i].equals("-"))
            {
                sum--;
            } str[i].equals("-") str[i].equals str[i] str i "-" {
                sum--;
            } 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) throws Exception
    {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] = S.split("");
        int sum = 0;
        for(int i=0;i<str.length;i++)
        {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        }
        System.out.println(sum);
    }
} public class Main {
    public static void main(String[] args) throws Exception
    {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] = S.split("");
        int sum = 0;
        for(int i=0;i<str.length;i++)
        {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        }
        System.out.println(sum);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception
    {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] = S.split("");
        int sum = 0;
        for(int i=0;i<str.length;i++)
        {
            if(str[i].equals("+"))
            {
                sum++;
            }
            else if(str[i].equals("-"))
            {
                sum--;
            }
        }
        System.out.println(sum);
    }
}
