import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
 
public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split("");
    int ans = 0;
    for(int i=0; i<4; i++) {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    }
    System.out.println(ans);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split("");
    int ans = 0;
    for(int i=0; i<4; i++) {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split("");
    int ans = 0;
    for(int i=0; i<4; i++) {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    }
    System.out.println(ans);
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split("");
    int ans = 0;
    for(int i=0; i<4; i++) {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    }
    System.out.println(ans);
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] str = in.readLine().split(""); str in.readLine().split("") in.readLine().split in.readLine() in.readLine in "" int ans = 0; ans 0 for(int i=0; i<4; i++) {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    } {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    } if(str[i].equals("+"))
        ans++;
      else
        ans--; str[i].equals("+") str[i].equals str[i] str i "+" ans++ 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) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split("");
    int ans = 0;
    for(int i=0; i<4; i++) {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    }
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split("");
    int ans = 0;
    for(int i=0; i<4; i++) {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    }
    System.out.println(ans);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
 
public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split("");
    int ans = 0;
    for(int i=0; i<4; i++) {
      if(str[i].equals("+"))
        ans++;
      else
        ans--;
    }
    System.out.println(ans);
  }
}