import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String sPlus = S.replace("-", "");
    System.out.println(2 * sPlus.length() - 4);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String sPlus = S.replace("-", "");
    System.out.println(2 * sPlus.length() - 4);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String sPlus = S.replace("-", "");
    System.out.println(2 * sPlus.length() - 4);
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String sPlus = S.replace("-", "");
    System.out.println(2 * sPlus.length() - 4);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String sPlus = S.replace("-", ""); sPlus S.replace("-", "") S.replace S "-" "" System.out.println(2 * sPlus.length() - 4) System.out.println System.out System System.out 2 * sPlus.length() - 4 2 * sPlus.length() 2 sPlus.length() sPlus.length sPlus 4 String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String sPlus = S.replace("-", "");
    System.out.println(2 * sPlus.length() - 4);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String sPlus = S.replace("-", "");
    System.out.println(2 * sPlus.length() - 4);
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    String sPlus = S.replace("-", "");
    System.out.println(2 * sPlus.length() - 4);
  }
}