import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        String x = scn.next();
        int answer = 0;
        for(int i=0;i<x.length();i++){
            char buf = x.charAt(i);
            if(buf=='+'){
                answer++;
            }else{
                answer--;
            }
        }
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        String x = scn.next();
        int answer = 0;
        for(int i=0;i<x.length();i++){
            char buf = x.charAt(i);
            if(buf=='+'){
                answer++;
            }else{
                answer--;
            }
        }
        System.out.println(answer);
    }
} Main public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        String x = scn.next();
        int answer = 0;
        for(int i=0;i<x.length();i++){
            char buf = x.charAt(i);
            if(buf=='+'){
                answer++;
            }else{
                answer--;
            }
        }
        System.out.println(answer);
    } main {
        Scanner scn=new Scanner(System.in);
        String x = scn.next();
        int answer = 0;
        for(int i=0;i<x.length();i++){
            char buf = x.charAt(i);
            if(buf=='+'){
                answer++;
            }else{
                answer--;
            }
        }
        System.out.println(answer);
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) String x = scn.next(); x scn.next() scn.next scn int answer = 0; answer 0 for(int i=0;i<x.length();i++){
            char buf = x.charAt(i);
            if(buf=='+'){
                answer++;
            }else{
                answer--;
            }
        } int i=0; int i=0; i 0 i<x.length() i x.length() x.length x i++ i++ i {
            char buf = x.charAt(i);
            if(buf=='+'){
                answer++;
            }else{
                answer--;
            }
        } {
            char buf = x.charAt(i);
            if(buf=='+'){
                answer++;
            }else{
                answer--;
            }
        } char buf = x.charAt(i); buf x.charAt(i) x.charAt x i if(buf=='+'){
                answer++;
            }else{
                answer--;
            } buf=='+' buf '+' {
                answer++;
            } answer++ answer {
                answer--;
            } answer-- answer System.out.println(answer) System.out.println System.out System System.out answer String arg[] arg
import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        String x = scn.next();
        int answer = 0;
        for(int i=0;i<x.length();i++){
            char buf = x.charAt(i);
            if(buf=='+'){
                answer++;
            }else{
                answer--;
            }
        }
        System.out.println(answer);
    }
}
