import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    }
  }
} Main public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    }
  } main {
    try (Scanner sc = new Scanner(System.in)) {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    }
  } try (Scanner sc = new Scanner(System.in)) {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    } {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) char[] S = sc.next().toCharArray(); S sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int result = 0; result 0 for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      } int i = 0; int i = 0; i 0 i < S.length i S.length S S.length i++ i++ i {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      } {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      } if (S[i] == '+') {
          result++;
        } else {
          result--;
        } S[i] == '+' S[i] S i '+' {
          result++;
        } result++ result {
          result--;
        } result-- result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    }
  }
} public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      char[] S = sc.next().toCharArray();
      int result = 0;
      for (int i = 0; i < S.length; i++) {
        if (S[i] == '+') {
          result++;
        } else {
          result--;
        }
      }

      System.out.println(result);
    }
  }
}
