import java.util.Scanner;
public class Main{
  public static void main(String[] args){
      Scanner sc =new Scanner(System.in);
    int ans=0;
    String str=sc.next();

    for(int i=0;i<str.length();i++){
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    }
    System.out.println(ans);

  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
      Scanner sc =new Scanner(System.in);
    int ans=0;
    String str=sc.next();

    for(int i=0;i<str.length();i++){
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    }
    System.out.println(ans);

  }
} Main public static void main(String[] args){
      Scanner sc =new Scanner(System.in);
    int ans=0;
    String str=sc.next();

    for(int i=0;i<str.length();i++){
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    }
    System.out.println(ans);

  } main {
      Scanner sc =new Scanner(System.in);
    int ans=0;
    String str=sc.next();

    for(int i=0;i<str.length();i++){
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    }
    System.out.println(ans);

  } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int ans=0; ans 0 String str=sc.next(); str sc.next() sc.next sc for(int i=0;i<str.length();i++){
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    } int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i {
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    } {
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    } char a; a a=str.charAt(i) a str.charAt(i) str.charAt str i switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      } a case '+': '+' case '+': ans++ ans break; default: default: ans-- ans break; 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 sc =new Scanner(System.in);
    int ans=0;
    String str=sc.next();

    for(int i=0;i<str.length();i++){
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    }
    System.out.println(ans);

  }
} public class Main{
  public static void main(String[] args){
      Scanner sc =new Scanner(System.in);
    int ans=0;
    String str=sc.next();

    for(int i=0;i<str.length();i++){
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    }
    System.out.println(ans);

  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
      Scanner sc =new Scanner(System.in);
    int ans=0;
    String str=sc.next();

    for(int i=0;i<str.length();i++){
     char a;
     a=str.charAt(i);
      switch (a){
        case '+':
          ans++;
          break;
        default:
          ans--;
          break;
      }
    }
    System.out.println(ans);

  }
}