import java.util.Scanner;

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

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