import java.util.Scanner;

public class Main {
  public static void main (String[] args) {
     Scanner input = new Scanner(System.in);
  
     while (input.hasNext()) {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main (String[] args) {
     Scanner input = new Scanner(System.in);
  
     while (input.hasNext()) {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      }
  }
} Main public static void main (String[] args) {
     Scanner input = new Scanner(System.in);
  
     while (input.hasNext()) {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      }
  } main {
     Scanner input = new Scanner(System.in);
  
     while (input.hasNext()) {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      }
  } Scanner input = new Scanner(System.in); input new Scanner(System.in) while (input.hasNext()) {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      } input.hasNext() input.hasNext input {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      } String S = input.next(); S input.next() input.next input int ans = 0; ans 0 for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        } int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S ++i ++i i {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        } {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        } if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          } S.charAt(i) == '-' S.charAt(i) S.charAt S i '-' {
            --ans;
          } --ans ans if (S.charAt(i) == '+') {
            ++ans;
          } S.charAt(i) == '+' S.charAt(i) S.charAt S i '+' {
            ++ans;
          } ++ans ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main (String[] args) {
     Scanner input = new Scanner(System.in);
  
     while (input.hasNext()) {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      }
  }
} public class Main {
  public static void main (String[] args) {
     Scanner input = new Scanner(System.in);
  
     while (input.hasNext()) {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main (String[] args) {
     Scanner input = new Scanner(System.in);
  
     while (input.hasNext()) {
        String S = input.next();
        int ans = 0;
       
        for (int i = 0; i < S.length(); ++i) {
          if (S.charAt(i) == '-') {
            --ans;
          } else if (S.charAt(i) == '+') {
            ++ans;
          }
        }
        
        System.out.println(ans);
      }
  }
}