import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
	int a = 0;
    for (int i=0; i<=3; i++){
      if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      }
    }
    System.out.println(a);
  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
	int a = 0;
    for (int i=0; i<=3; i++){
      if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      }
    }
    System.out.println(a);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
	int a = 0;
    for (int i=0; i<=3; i++){
      if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      }
    }
    System.out.println(a);
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
	int a = 0;
    for (int i=0; i<=3; i++){
      if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      }
    }
    System.out.println(a);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = 0; a 0 for (int i=0; i<=3; i++){
      if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      }
    } int i=0; int i=0; i 0 i<=3 i 3 i++ i++ i {
      if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      }
    } {
      if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      }
    } if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      } s.substring(i,i+1).equals("+") s.substring(i,i+1).equals s.substring(i,i+1) s.substring s i i+1 i 1 "+" {
        a++;
      } a++ a {
        a--;
      } a-- a System.out.println(a) System.out.println System.out System System.out a String[] args args
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
	int a = 0;
    for (int i=0; i<=3; i++){
      if (s.substring(i,i+1).equals("+")) {
        a++;
      } else {
        a--;
      }
    }
    System.out.println(a);
  }
}