import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char a[] = new char[4];
        int sum = 0;
        for(int i=0; i<4; i++){
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        }
        System.out.println(sum);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char a[] = new char[4];
        int sum = 0;
        for(int i=0; i<4; i++){
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        }
        System.out.println(sum);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char a[] = new char[4];
        int sum = 0;
        for(int i=0; i<4; i++){
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        }
        System.out.println(sum);
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char a[] = new char[4];
        int sum = 0;
        for(int i=0; i<4; i++){
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        }
        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 char a[] = new char[4]; a new char[4] 4 int sum = 0; sum 0 for(int i=0; i<4; i++){
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        } {
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        } a[i] = s.charAt(i) a[i] a i s.charAt(i) s.charAt s i if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            } a[i]=='+' a[i] a i '+' {
                sum += 1;
            } sum += 1 sum 1 {
                sum -= 1;
            } sum -= 1 sum 1 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 sc = new Scanner(System.in);
        String s = sc.next();
        char a[] = new char[4];
        int sum = 0;
        for(int i=0; i<4; i++){
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        }
        System.out.println(sum);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char a[] = new char[4];
        int sum = 0;
        for(int i=0; i<4; i++){
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        }
        System.out.println(sum);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char a[] = new char[4];
        int sum = 0;
        for(int i=0; i<4; i++){
            a[i] = s.charAt(i);
            if(a[i]=='+'){
                sum += 1;
            }
            else{
                sum -= 1;
            }
        }
        System.out.println(sum);
    }
}