import java.io.*;
import java.util.*;

class Main {
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      char[] a=br.readLine().toCharArray();
      long count=0;
      for(int i=0;i<a.length;i++){
        if(a[i]=='+')
         count++;
        else
        count--;
      }
      System.out.println(count);
    }
  } import java.io.*; io.* java import java.util.*; util.* java class Main {
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      char[] a=br.readLine().toCharArray();
      long count=0;
      for(int i=0;i<a.length;i++){
        if(a[i]=='+')
         count++;
        else
        count--;
      }
      System.out.println(count);
    }
  } Main public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      char[] a=br.readLine().toCharArray();
      long count=0;
      for(int i=0;i<a.length;i++){
        if(a[i]=='+')
         count++;
        else
        count--;
      }
      System.out.println(count);
    } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      char[] a=br.readLine().toCharArray();
      long count=0;
      for(int i=0;i<a.length;i++){
        if(a[i]=='+')
         count++;
        else
        count--;
      }
      System.out.println(count);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) char[] a=br.readLine().toCharArray(); a br.readLine().toCharArray() br.readLine().toCharArray br.readLine() br.readLine br long count=0; count 0 for(int i=0;i<a.length;i++){
        if(a[i]=='+')
         count++;
        else
        count--;
      } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
        if(a[i]=='+')
         count++;
        else
        count--;
      } {
        if(a[i]=='+')
         count++;
        else
        count--;
      } if(a[i]=='+')
         count++;
        else
        count--; a[i]=='+' a[i] a i '+' count++ count count-- count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.io.*;
import java.util.*;

class Main {
  public static void main(String[] args)throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      char[] a=br.readLine().toCharArray();
      long count=0;
      for(int i=0;i<a.length;i++){
        if(a[i]=='+')
         count++;
        else
        count--;
      }
      System.out.println(count);
    }
  }
