import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String S = sc.next();
    
    String first = S.substring(0, 1);
    String second = S.substring(1, 2);
    String third = S.substring(2, 3);
    String fourth = S.substring(3, 4);

    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;

    if (first.equals("+")) {
      a = 1;
    } else {
      a = -1;
    }
    if (second.equals("+")) {
      b = 1;
    } else {
      b = -1;
    }
    if (third.equals("+")) {
      c = 1;
    } else {
      c = -1;
    }
    if (fourth.equals("+")) {
      d = 1;
    } else {
      d = -1;
    }

    System.out.println(a + b + c + d);
  }
} 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 first = S.substring(0, 1);
    String second = S.substring(1, 2);
    String third = S.substring(2, 3);
    String fourth = S.substring(3, 4);

    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;

    if (first.equals("+")) {
      a = 1;
    } else {
      a = -1;
    }
    if (second.equals("+")) {
      b = 1;
    } else {
      b = -1;
    }
    if (third.equals("+")) {
      c = 1;
    } else {
      c = -1;
    }
    if (fourth.equals("+")) {
      d = 1;
    } else {
      d = -1;
    }

    System.out.println(a + b + c + d);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String S = sc.next();
    
    String first = S.substring(0, 1);
    String second = S.substring(1, 2);
    String third = S.substring(2, 3);
    String fourth = S.substring(3, 4);

    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;

    if (first.equals("+")) {
      a = 1;
    } else {
      a = -1;
    }
    if (second.equals("+")) {
      b = 1;
    } else {
      b = -1;
    }
    if (third.equals("+")) {
      c = 1;
    } else {
      c = -1;
    }
    if (fourth.equals("+")) {
      d = 1;
    } else {
      d = -1;
    }

    System.out.println(a + b + c + d);
  } main {
    Scanner sc = new Scanner(System.in);
    
    String S = sc.next();
    
    String first = S.substring(0, 1);
    String second = S.substring(1, 2);
    String third = S.substring(2, 3);
    String fourth = S.substring(3, 4);

    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;

    if (first.equals("+")) {
      a = 1;
    } else {
      a = -1;
    }
    if (second.equals("+")) {
      b = 1;
    } else {
      b = -1;
    }
    if (third.equals("+")) {
      c = 1;
    } else {
      c = -1;
    }
    if (fourth.equals("+")) {
      d = 1;
    } else {
      d = -1;
    }

    System.out.println(a + b + c + d);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String first = S.substring(0, 1); first S.substring(0, 1) S.substring S 0 1 String second = S.substring(1, 2); second S.substring(1, 2) S.substring S 1 2 String third = S.substring(2, 3); third S.substring(2, 3) S.substring S 2 3 String fourth = S.substring(3, 4); fourth S.substring(3, 4) S.substring S 3 4 int a = 0; a 0 int b = 0; b 0 int c = 0; c 0 int d = 0; d 0 if (first.equals("+")) {
      a = 1;
    } else {
      a = -1;
    } first.equals("+") first.equals first "+" {
      a = 1;
    } a = 1 a 1 {
      a = -1;
    } a = -1 a -1 1 if (second.equals("+")) {
      b = 1;
    } else {
      b = -1;
    } second.equals("+") second.equals second "+" {
      b = 1;
    } b = 1 b 1 {
      b = -1;
    } b = -1 b -1 1 if (third.equals("+")) {
      c = 1;
    } else {
      c = -1;
    } third.equals("+") third.equals third "+" {
      c = 1;
    } c = 1 c 1 {
      c = -1;
    } c = -1 c -1 1 if (fourth.equals("+")) {
      d = 1;
    } else {
      d = -1;
    } fourth.equals("+") fourth.equals fourth "+" {
      d = 1;
    } d = 1 d 1 {
      d = -1;
    } d = -1 d -1 1 System.out.println(a + b + c + d) System.out.println System.out System System.out a + b + c + d c a + b + c + d a b c d String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String S = sc.next();
    
    String first = S.substring(0, 1);
    String second = S.substring(1, 2);
    String third = S.substring(2, 3);
    String fourth = S.substring(3, 4);

    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;

    if (first.equals("+")) {
      a = 1;
    } else {
      a = -1;
    }
    if (second.equals("+")) {
      b = 1;
    } else {
      b = -1;
    }
    if (third.equals("+")) {
      c = 1;
    } else {
      c = -1;
    }
    if (fourth.equals("+")) {
      d = 1;
    } else {
      d = -1;
    }

    System.out.println(a + b + c + d);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String S = sc.next();
    
    String first = S.substring(0, 1);
    String second = S.substring(1, 2);
    String third = S.substring(2, 3);
    String fourth = S.substring(3, 4);

    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;

    if (first.equals("+")) {
      a = 1;
    } else {
      a = -1;
    }
    if (second.equals("+")) {
      b = 1;
    } else {
      b = -1;
    }
    if (third.equals("+")) {
      c = 1;
    } else {
      c = -1;
    }
    if (fourth.equals("+")) {
      d = 1;
    } else {
      d = -1;
    }

    System.out.println(a + b + c + d);
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String S = sc.next();
    
    String first = S.substring(0, 1);
    String second = S.substring(1, 2);
    String third = S.substring(2, 3);
    String fourth = S.substring(3, 4);

    int a = 0;
    int b = 0;
    int c = 0;
    int d = 0;

    if (first.equals("+")) {
      a = 1;
    } else {
      a = -1;
    }
    if (second.equals("+")) {
      b = 1;
    } else {
      b = -1;
    }
    if (third.equals("+")) {
      c = 1;
    } else {
      c = -1;
    }
    if (fourth.equals("+")) {
      d = 1;
    } else {
      d = -1;
    }

    System.out.println(a + b + c + d);
  }
}