import java.io.*;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    int sum = 0;
    for (int i = 0; i < str.length(); i++) {
      if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      }
    }
    System.out.println(sum);
  }
} import java.io.*; io.* java class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    int sum = 0;
    for (int i = 0; i < str.length(); i++) {
      if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      }
    }
    System.out.println(sum);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    int sum = 0;
    for (int i = 0; i < str.length(); i++) {
      if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      }
    }
    System.out.println(sum);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    int sum = 0;
    for (int i = 0; i < str.length(); i++) {
      if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      }
    }
    System.out.println(sum);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int sum = 0; sum 0 for (int i = 0; i < str.length(); i++) {
      if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      }
    } int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
      if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      }
    } {
      if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      }
    } if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      } str.charAt(i) == '+' str.charAt(i) str.charAt str i '+' {
          sum++;
      } sum++ sum if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      } str.charAt(i) == '-' str.charAt(i) str.charAt str i '-' {
          sum--;
      } sum-- sum {
        // 何もしない
      } System.out.println(sum) System.out.println System.out System System.out sum String[] args args
import java.io.*;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    int sum = 0;
    for (int i = 0; i < str.length(); i++) {
      if (str.charAt(i) == '+') {
          sum++;
      } else if (str.charAt(i) == '-') {
          sum--;
      } else {
        // 何もしない
      }
    }
    System.out.println(sum);
  }
}