import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int n = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        //int num[] = new int[3];
        String s = stdIn.next();
        char c[] = s.toCharArray();
        //boolean flag = true;
        int sum = 0;
        
        for(int i = 0; i < s.length(); i++){
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        }
        
        System.out.println(sum);
        
        
        //System.out.println();
        //System.out.print();
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int n = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        //int num[] = new int[3];
        String s = stdIn.next();
        char c[] = s.toCharArray();
        //boolean flag = true;
        int sum = 0;
        
        for(int i = 0; i < s.length(); i++){
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        }
        
        System.out.println(sum);
        
        
        //System.out.println();
        //System.out.print();
    }
} Main public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int n = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        //int num[] = new int[3];
        String s = stdIn.next();
        char c[] = s.toCharArray();
        //boolean flag = true;
        int sum = 0;
        
        for(int i = 0; i < s.length(); i++){
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        }
        
        System.out.println(sum);
        
        
        //System.out.println();
        //System.out.print();
    } main {
        Scanner stdIn = new Scanner(System.in);
        
        //int n = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        //int num[] = new int[3];
        String s = stdIn.next();
        char c[] = s.toCharArray();
        //boolean flag = true;
        int sum = 0;
        
        for(int i = 0; i < s.length(); i++){
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        }
        
        System.out.println(sum);
        
        
        //System.out.println();
        //System.out.print();
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String s = stdIn.next(); s stdIn.next() stdIn.next stdIn char c[] = s.toCharArray(); c s.toCharArray() s.toCharArray s int sum = 0; sum 0 for(int i = 0; i < s.length(); i++){
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        } {
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        } if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            } c[i] == '+' c[i] c i '+' {
                sum++;
            } sum++ sum {
                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[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int n = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        //int num[] = new int[3];
        String s = stdIn.next();
        char c[] = s.toCharArray();
        //boolean flag = true;
        int sum = 0;
        
        for(int i = 0; i < s.length(); i++){
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        }
        
        System.out.println(sum);
        
        
        //System.out.println();
        //System.out.print();
    }
} public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int n = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        //int num[] = new int[3];
        String s = stdIn.next();
        char c[] = s.toCharArray();
        //boolean flag = true;
        int sum = 0;
        
        for(int i = 0; i < s.length(); i++){
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        }
        
        System.out.println(sum);
        
        
        //System.out.println();
        //System.out.print();
    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int n = stdIn.nextInt();
        //int k = stdIn.nextInt();
        //int b = stdIn.nextInt();
        //int num[] = new int[3];
        String s = stdIn.next();
        char c[] = s.toCharArray();
        //boolean flag = true;
        int sum = 0;
        
        for(int i = 0; i < s.length(); i++){
            if(c[i] == '+'){
                sum++;
            }else{
                sum--;
            }
        }
        
        System.out.println(sum);
        
        
        //System.out.println();
        //System.out.print();
    }
}
