public class Main {
    public static void main(String[] args)
    {
        int T_num = 0;
        String S = new java.util.Scanner(System.in).nextLine();
        for(int i=0; i<4; i++)
        {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        }
        System.out.println(T_num);
    }
} public class Main {
    public static void main(String[] args)
    {
        int T_num = 0;
        String S = new java.util.Scanner(System.in).nextLine();
        for(int i=0; i<4; i++)
        {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        }
        System.out.println(T_num);
    }
} Main public static void main(String[] args)
    {
        int T_num = 0;
        String S = new java.util.Scanner(System.in).nextLine();
        for(int i=0; i<4; i++)
        {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        }
        System.out.println(T_num);
    } main {
        int T_num = 0;
        String S = new java.util.Scanner(System.in).nextLine();
        for(int i=0; i<4; i++)
        {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        }
        System.out.println(T_num);
    } int T_num = 0; T_num 0 String S = new java.util.Scanner(System.in).nextLine(); S new java.util.Scanner(System.in).nextLine() new java.util.Scanner(System.in).nextLine new java.util.Scanner(System.in) for(int i=0; i<4; i++)
        {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        } {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        } char testr = S.charAt(i); testr S.charAt(i) S.charAt S i if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            } testr == '+' testr '+' {
                T_num++;
            } T_num++ T_num if(testr == '-')
            {
                T_num--;
            } testr == '-' testr '-' {
                T_num--;
            } T_num-- T_num System.out.println(T_num) System.out.println System.out System System.out T_num String[] args args public class Main {
    public static void main(String[] args)
    {
        int T_num = 0;
        String S = new java.util.Scanner(System.in).nextLine();
        for(int i=0; i<4; i++)
        {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        }
        System.out.println(T_num);
    }
} public class Main {
    public static void main(String[] args)
    {
        int T_num = 0;
        String S = new java.util.Scanner(System.in).nextLine();
        for(int i=0; i<4; i++)
        {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        }
        System.out.println(T_num);
    }
} Main
public class Main {
    public static void main(String[] args)
    {
        int T_num = 0;
        String S = new java.util.Scanner(System.in).nextLine();
        for(int i=0; i<4; i++)
        {
            char testr = S.charAt(i);
            if(testr == '+')
            {
                T_num++;
            }
            else if(testr == '-')
            {
                T_num--;
            }

        }
        System.out.println(T_num);
    }
}
