import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int score = 0;
    for ( char sign : line.toCharArray() ) {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    }
    System.out.println(score);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int score = 0;
    for ( char sign : line.toCharArray() ) {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    }
    System.out.println(score);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int score = 0;
    for ( char sign : line.toCharArray() ) {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    }
    System.out.println(score);
  } main {
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int score = 0;
    for ( char sign : line.toCharArray() ) {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    }
    System.out.println(score);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc int score = 0; score 0 for ( char sign : line.toCharArray() ) {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    } char sign line.toCharArray() line.toCharArray line {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    } {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    } if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      } sign == '+' sign '+' {
        score++;
      } score++ score if ( sign == '-' ) {
        score--;
      } sign == '-' sign '-' {
        score--;
      } score-- score System.out.println(score) System.out.println System.out System System.out score String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int score = 0;
    for ( char sign : line.toCharArray() ) {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    }
    System.out.println(score);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int score = 0;
    for ( char sign : line.toCharArray() ) {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    }
    System.out.println(score);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int score = 0;
    for ( char sign : line.toCharArray() ) {
      if ( sign == '+' ) {
        score++;
      } else if ( sign == '-' ) {
        score--;
      }
    }
    System.out.println(score);
  }
}