import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] S = scanner.next().toCharArray();
    int res = 0;
    for (char ch : S) {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    }
    System.out.println(res);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] S = scanner.next().toCharArray();
    int res = 0;
    for (char ch : S) {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    }
    System.out.println(res);
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] S = scanner.next().toCharArray();
    int res = 0;
    for (char ch : S) {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    }
    System.out.println(res);
  } main {
    Scanner scanner = new Scanner(System.in);

    char[] S = scanner.next().toCharArray();
    int res = 0;
    for (char ch : S) {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    }
    System.out.println(res);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) char[] S = scanner.next().toCharArray(); S scanner.next().toCharArray() scanner.next().toCharArray scanner.next() scanner.next scanner int res = 0; res 0 for (char ch : S) {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    } char ch S {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    } {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    } switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      } ch case '+': '+' case '+': res++ res break; case '-': '-' case '-': res-- res break; System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] S = scanner.next().toCharArray();
    int res = 0;
    for (char ch : S) {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    }
    System.out.println(res);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] S = scanner.next().toCharArray();
    int res = 0;
    for (char ch : S) {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    }
    System.out.println(res);
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    char[] S = scanner.next().toCharArray();
    int res = 0;
    for (char ch : S) {
      switch (ch) {
        case '+':
          res++;
          break;
        case '-':
          res--;
          break;
      }
    }
    System.out.println(res);
  }
}
