import java.util.* ;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    String s = scan.next() ;
    char ch[] = s.toCharArray();
    int x = 0 ;
    for(int i = 0 ; i < s.length() ; i++){
      if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--;
    }
    System.out.println(x) ;
  }
} import java.util.* ; util.* java class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    String s = scan.next() ;
    char ch[] = s.toCharArray();
    int x = 0 ;
    for(int i = 0 ; i < s.length() ; i++){
      if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--;
    }
    System.out.println(x) ;
  }
} Main public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    String s = scan.next() ;
    char ch[] = s.toCharArray();
    int x = 0 ;
    for(int i = 0 ; i < s.length() ; i++){
      if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--;
    }
    System.out.println(x) ;
  } main {
    
    Scanner scan = new Scanner(System.in);
    String s = scan.next() ;
    char ch[] = s.toCharArray();
    int x = 0 ;
    for(int i = 0 ; i < s.length() ; i++){
      if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--;
    }
    System.out.println(x) ;
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next() ; s scan.next() scan.next scan char ch[] = s.toCharArray(); ch s.toCharArray() s.toCharArray s int x = 0 ; x 0 for(int i = 0 ; i < s.length() ; i++){
      if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--;
    } int i = 0 ; int i = 0 ; i 0 i < s.length() i s.length() s.length s i++ i++ i {
      if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--;
    } {
      if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--;
    } if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--; ch[i] == '+' ch[i] ch i '+' x++ x if(ch[i]=='-')
        x--; ch[i]=='-' ch[i] ch i '-' x-- x System.out.println(x) System.out.println System.out System System.out x String[] args args
import java.util.* ;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    String s = scan.next() ;
    char ch[] = s.toCharArray();
    int x = 0 ;
    for(int i = 0 ; i < s.length() ; i++){
      if(ch[i] == '+')
        x++;
      else if(ch[i]=='-')
        x--;
    }
    System.out.println(x) ;
  }
}
