import java.util.Scanner;
import java.util.Arrays;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = 0;
    char[] symbols = sc.next().toCharArray();
    for(int i = 0; i < 4; i++){
    if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    }
  }
  System.out.println(a);
    
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = 0;
    char[] symbols = sc.next().toCharArray();
    for(int i = 0; i < 4; i++){
    if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    }
  }
  System.out.println(a);
    
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = 0;
    char[] symbols = sc.next().toCharArray();
    for(int i = 0; i < 4; i++){
    if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    }
  }
  System.out.println(a);
    
  } main {
    Scanner sc = new Scanner(System.in);
    int a = 0;
    char[] symbols = sc.next().toCharArray();
    for(int i = 0; i < 4; i++){
    if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    }
  }
  System.out.println(a);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = 0; a 0 char[] symbols = sc.next().toCharArray(); symbols sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc for(int i = 0; i < 4; i++){
    if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    }
  } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
    if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    }
  } {
    if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    }
  } if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    } symbols[i] == '+' symbols[i] symbols i '+' {
      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.Arrays;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = 0;
    char[] symbols = sc.next().toCharArray();
    for(int i = 0; i < 4; i++){
    if(symbols[i] == '+'){
      a++;
    }else{
      a--;
    }
  }
  System.out.println(a);
    
  }
}