import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int num = -4;
    if (S.charAt(0) == '+') num += 2;
    if (S.charAt(1) == '+') num += 2;
    if (S.charAt(2) == '+') num += 2;
    if (S.charAt(3) == '+') num += 2;
    System.out.println(num);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int num = -4;
    if (S.charAt(0) == '+') num += 2;
    if (S.charAt(1) == '+') num += 2;
    if (S.charAt(2) == '+') num += 2;
    if (S.charAt(3) == '+') num += 2;
    System.out.println(num);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int num = -4;
    if (S.charAt(0) == '+') num += 2;
    if (S.charAt(1) == '+') num += 2;
    if (S.charAt(2) == '+') num += 2;
    if (S.charAt(3) == '+') num += 2;
    System.out.println(num);
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int num = -4;
    if (S.charAt(0) == '+') num += 2;
    if (S.charAt(1) == '+') num += 2;
    if (S.charAt(2) == '+') num += 2;
    if (S.charAt(3) == '+') num += 2;
    System.out.println(num);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int num = -4; num -4 4 if (S.charAt(0) == '+') num += 2; S.charAt(0) == '+' S.charAt(0) S.charAt S 0 '+' num += 2 num 2 if (S.charAt(1) == '+') num += 2; S.charAt(1) == '+' S.charAt(1) S.charAt S 1 '+' num += 2 num 2 if (S.charAt(2) == '+') num += 2; S.charAt(2) == '+' S.charAt(2) S.charAt S 2 '+' num += 2 num 2 if (S.charAt(3) == '+') num += 2; S.charAt(3) == '+' S.charAt(3) S.charAt S 3 '+' num += 2 num 2 System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int num = -4;
    if (S.charAt(0) == '+') num += 2;
    if (S.charAt(1) == '+') num += 2;
    if (S.charAt(2) == '+') num += 2;
    if (S.charAt(3) == '+') num += 2;
    System.out.println(num);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int num = -4;
    if (S.charAt(0) == '+') num += 2;
    if (S.charAt(1) == '+') num += 2;
    if (S.charAt(2) == '+') num += 2;
    if (S.charAt(3) == '+') num += 2;
    System.out.println(num);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int num = -4;
    if (S.charAt(0) == '+') num += 2;
    if (S.charAt(1) == '+') num += 2;
    if (S.charAt(2) == '+') num += 2;
    if (S.charAt(3) == '+') num += 2;
    System.out.println(num);
  }
}