import java.util.*;
public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    String S = sc.next();

    String S1 = S.substring(0,1);
    String S2 = S.substring(1,2);
    String S3 = S.substring(2,3);
    String S4 = S.substring(3,4);

    int count = 0;

    if (S1.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S2.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S3.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S4.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    System.out.println(count);

  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    String S = sc.next();

    String S1 = S.substring(0,1);
    String S2 = S.substring(1,2);
    String S3 = S.substring(2,3);
    String S4 = S.substring(3,4);

    int count = 0;

    if (S1.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S2.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S3.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S4.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    System.out.println(count);

  }
} Main public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    String S = sc.next();

    String S1 = S.substring(0,1);
    String S2 = S.substring(1,2);
    String S3 = S.substring(2,3);
    String S4 = S.substring(3,4);

    int count = 0;

    if (S1.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S2.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S3.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S4.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    System.out.println(count);

  } main {

    Scanner sc = new Scanner(System.in);
    String S = sc.next();

    String S1 = S.substring(0,1);
    String S2 = S.substring(1,2);
    String S3 = S.substring(2,3);
    String S4 = S.substring(3,4);

    int count = 0;

    if (S1.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S2.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S3.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S4.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    System.out.println(count);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String S1 = S.substring(0,1); S1 S.substring(0,1) S.substring S 0 1 String S2 = S.substring(1,2); S2 S.substring(1,2) S.substring S 1 2 String S3 = S.substring(2,3); S3 S.substring(2,3) S.substring S 2 3 String S4 = S.substring(3,4); S4 S.substring(3,4) S.substring S 3 4 int count = 0; count 0 if (S1.equals("+")) {
      count++; 
    } else {
      count--; 
    } S1.equals("+") S1.equals S1 "+" {
      count++; 
    } count++ count {
      count--; 
    } count-- count if (S2.equals("+")) {
      count++; 
    } else {
      count--; 
    } S2.equals("+") S2.equals S2 "+" {
      count++; 
    } count++ count {
      count--; 
    } count-- count if (S3.equals("+")) {
      count++; 
    } else {
      count--; 
    } S3.equals("+") S3.equals S3 "+" {
      count++; 
    } count++ count {
      count--; 
    } count-- count if (S4.equals("+")) {
      count++; 
    } else {
      count--; 
    } S4.equals("+") S4.equals S4 "+" {
      count++; 
    } count++ count {
      count--; 
    } count-- count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    String S = sc.next();

    String S1 = S.substring(0,1);
    String S2 = S.substring(1,2);
    String S3 = S.substring(2,3);
    String S4 = S.substring(3,4);

    int count = 0;

    if (S1.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S2.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S3.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S4.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    System.out.println(count);

  }
} public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    String S = sc.next();

    String S1 = S.substring(0,1);
    String S2 = S.substring(1,2);
    String S3 = S.substring(2,3);
    String S4 = S.substring(3,4);

    int count = 0;

    if (S1.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S2.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S3.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S4.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    System.out.println(count);

  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    String S = sc.next();

    String S1 = S.substring(0,1);
    String S2 = S.substring(1,2);
    String S3 = S.substring(2,3);
    String S4 = S.substring(3,4);

    int count = 0;

    if (S1.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S2.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S3.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    if (S4.equals("+")) {
      count++; 
    } else {
      count--; 
    }

    System.out.println(count);

  }
}