import java.io.*;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    int count = 0;
    for(int i = 0; i < str.length(); i++) {
      count += str.charAt(i) == '+' ? 1 : -1;
    }
    
    System.out.println(count);
  }
} import java.io.*; io.* java class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    int count = 0;
    for(int i = 0; i < str.length(); i++) {
      count += str.charAt(i) == '+' ? 1 : -1;
    }
    
    System.out.println(count);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    int count = 0;
    for(int i = 0; i < str.length(); i++) {
      count += str.charAt(i) == '+' ? 1 : -1;
    }
    
    System.out.println(count);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    int count = 0;
    for(int i = 0; i < str.length(); i++) {
      count += str.charAt(i) == '+' ? 1 : -1;
    }
    
    System.out.println(count);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int count = 0; count 0 for(int i = 0; i < str.length(); i++) {
      count += str.charAt(i) == '+' ? 1 : -1;
    } int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
      count += str.charAt(i) == '+' ? 1 : -1;
    } {
      count += str.charAt(i) == '+' ? 1 : -1;
    } count += str.charAt(i) == '+' ? 1 : -1 count str.charAt(i) == '+' ? 1 : -1 str.charAt(i) == '+' str.charAt(i) str.charAt str i '+' 1 -1 1 System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.io.*;

class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    int count = 0;
    for(int i = 0; i < str.length(); i++) {
      count += str.charAt(i) == '+' ? 1 : -1;
    }
    
    System.out.println(count);
  }
}
