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

    String S = scanner.nextLine();
    int N = 0;
    for ( int i = 0; i < S.length(); i++ ) {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    }
    System.out.println(N);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    String S = scanner.nextLine();
    int N = 0;
    for ( int i = 0; i < S.length(); i++ ) {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    }
    System.out.println(N);
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    String S = scanner.nextLine();
    int N = 0;
    for ( int i = 0; i < S.length(); i++ ) {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    }
    System.out.println(N);
  } main {
    Scanner scanner = new Scanner(System.in);

    String S = scanner.nextLine();
    int N = 0;
    for ( int i = 0; i < S.length(); i++ ) {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    }
    System.out.println(N);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String S = scanner.nextLine(); S scanner.nextLine() scanner.nextLine scanner int N = 0; N 0 for ( int i = 0; i < S.length(); i++ ) {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    } int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    } {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    } if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      } S.charAt(i) == '+' S.charAt(i) S.charAt S i '+' {
        N++;
      } N++ N {
        N--;
      } N-- N System.out.println(N) System.out.println System.out System System.out N String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    String S = scanner.nextLine();
    int N = 0;
    for ( int i = 0; i < S.length(); i++ ) {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    }
    System.out.println(N);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    String S = scanner.nextLine();
    int N = 0;
    for ( int i = 0; i < S.length(); i++ ) {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    }
    System.out.println(N);
  }
} Main
import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    String S = scanner.nextLine();
    int N = 0;
    for ( int i = 0; i < S.length(); i++ ) {
      if ( S.charAt(i) == '+') {
        N++;
      } else {
        N--;
      }
    }
    System.out.println(N);
  }
}