import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int x = 0;
    
    for (i = 0; i <= 4; i++) {
      String y = scan.nextString();
      
      if (y = "+") {
        x = x + 1;
      }
      
      if (y = "-") {
        x = x - 1'
      }
    }
    
    System.out.println(x);
  }
}