import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    br.close();
    int p = s.length() - s.replaceAll("\\+","").length();
    int m = s.length() - p;
    System.out.println(p-m);
  }

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    br.close();
    int p = s.length() - s.replaceAll("\\+","").length();
    int m = s.length() - p;
    System.out.println(p-m);
  }

} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    br.close();
    int p = s.length() - s.replaceAll("\\+","").length();
    int m = s.length() - p;
    System.out.println(p-m);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    br.close();
    int p = s.length() - s.replaceAll("\\+","").length();
    int m = s.length() - p;
    System.out.println(p-m);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br br.close() br.close br int p = s.length() - s.replaceAll("\\+","").length(); p s.length() - s.replaceAll("\\+","").length() s.length() s.length s s.replaceAll("\\+","").length() s.replaceAll("\\+","").length s.replaceAll("\\+","") s.replaceAll s "\\+" "" int m = s.length() - p; m s.length() - p s.length() s.length s p System.out.println(p-m) System.out.println System.out System System.out p-m p m String[] args args public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    br.close();
    int p = s.length() - s.replaceAll("\\+","").length();
    int m = s.length() - p;
    System.out.println(p-m);
  }

} public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    br.close();
    int p = s.length() - s.replaceAll("\\+","").length();
    int m = s.length() - p;
    System.out.println(p-m);
  }

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    br.close();
    int p = s.length() - s.replaceAll("\\+","").length();
    int m = s.length() - p;
    System.out.println(p-m);
  }

}