import java.util.*;

public class Main {
    public static void main(String[] args) {
      
        int S = 4;       // 入力数
        int tScore = 0;  // 高橋くんの整数
      
        // 標準入力から値を取得してinputに入れる
        Scanner sc = new Scanner(System.in);
        char[] input = sc.nextLine().toCharArray();
        
        for (int i = 0; i < S; i++) {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        }
      
        System.out.println(tScore);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
      
        int S = 4;       // 入力数
        int tScore = 0;  // 高橋くんの整数
      
        // 標準入力から値を取得してinputに入れる
        Scanner sc = new Scanner(System.in);
        char[] input = sc.nextLine().toCharArray();
        
        for (int i = 0; i < S; i++) {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        }
      
        System.out.println(tScore);
    }
} Main public static void main(String[] args) {
      
        int S = 4;       // 入力数
        int tScore = 0;  // 高橋くんの整数
      
        // 標準入力から値を取得してinputに入れる
        Scanner sc = new Scanner(System.in);
        char[] input = sc.nextLine().toCharArray();
        
        for (int i = 0; i < S; i++) {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        }
      
        System.out.println(tScore);
    } main {
      
        int S = 4;       // 入力数
        int tScore = 0;  // 高橋くんの整数
      
        // 標準入力から値を取得してinputに入れる
        Scanner sc = new Scanner(System.in);
        char[] input = sc.nextLine().toCharArray();
        
        for (int i = 0; i < S; i++) {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        }
      
        System.out.println(tScore);
    } int S = 4; S 4 int tScore = 0; tScore 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] input = sc.nextLine().toCharArray(); input sc.nextLine().toCharArray() sc.nextLine().toCharArray sc.nextLine() sc.nextLine sc for (int i = 0; i < S; i++) {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        } int i = 0; int i = 0; i 0 i < S i S i++ i++ i {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        } {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        } String tmp = String.valueOf(input[i]); tmp String.valueOf(input[i]) String.valueOf String input[i] input i if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            } tmp.equals("+") tmp.equals tmp "+" {
                tScore = tScore + 1;
            } tScore = tScore + 1 tScore tScore + 1 tScore 1 {
                tScore = tScore - 1;
            } tScore = tScore - 1 tScore tScore - 1 tScore 1 System.out.println(tScore) System.out.println System.out System System.out tScore String[] args args public class Main {
    public static void main(String[] args) {
      
        int S = 4;       // 入力数
        int tScore = 0;  // 高橋くんの整数
      
        // 標準入力から値を取得してinputに入れる
        Scanner sc = new Scanner(System.in);
        char[] input = sc.nextLine().toCharArray();
        
        for (int i = 0; i < S; i++) {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        }
      
        System.out.println(tScore);
    }
} public class Main {
    public static void main(String[] args) {
      
        int S = 4;       // 入力数
        int tScore = 0;  // 高橋くんの整数
      
        // 標準入力から値を取得してinputに入れる
        Scanner sc = new Scanner(System.in);
        char[] input = sc.nextLine().toCharArray();
        
        for (int i = 0; i < S; i++) {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        }
      
        System.out.println(tScore);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
      
        int S = 4;       // 入力数
        int tScore = 0;  // 高橋くんの整数
      
        // 標準入力から値を取得してinputに入れる
        Scanner sc = new Scanner(System.in);
        char[] input = sc.nextLine().toCharArray();
        
        for (int i = 0; i < S; i++) {
            String tmp = String.valueOf(input[i]);
          
            if (tmp.equals("+")) {
                tScore = tScore + 1;
            } else {
                tScore = tScore - 1;
            }
        }
      
        System.out.println(tScore);
    }
}
