import java.util.Scanner;

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

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    System.out.println(s.replaceAll("\\-", "").length() - (4 - s.replaceAll("\\-", "").length()));
  }
}