import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        byte count = 0;
        Scanner sc = new Scanner(System.in);
        String inputString = sc.nextLine();
        if(inputString.charAt(0) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(1) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(2) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(3) == '+'){
            count++;
        } else{
            count--;
        }
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        byte count = 0;
        Scanner sc = new Scanner(System.in);
        String inputString = sc.nextLine();
        if(inputString.charAt(0) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(1) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(2) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(3) == '+'){
            count++;
        } else{
            count--;
        }
        System.out.println(count);
    }
} Main public static void main(String[] args){
        byte count = 0;
        Scanner sc = new Scanner(System.in);
        String inputString = sc.nextLine();
        if(inputString.charAt(0) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(1) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(2) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(3) == '+'){
            count++;
        } else{
            count--;
        }
        System.out.println(count);
    } main {
        byte count = 0;
        Scanner sc = new Scanner(System.in);
        String inputString = sc.nextLine();
        if(inputString.charAt(0) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(1) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(2) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(3) == '+'){
            count++;
        } else{
            count--;
        }
        System.out.println(count);
    } byte count = 0; count 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String inputString = sc.nextLine(); inputString sc.nextLine() sc.nextLine sc if(inputString.charAt(0) == '+'){
            count++;
        } else{
            count--;
        } inputString.charAt(0) == '+' inputString.charAt(0) inputString.charAt inputString 0 '+' {
            count++;
        } count++ count {
            count--;
        } count-- count if(inputString.charAt(1) == '+'){
            count++;
        } else{
            count--;
        } inputString.charAt(1) == '+' inputString.charAt(1) inputString.charAt inputString 1 '+' {
            count++;
        } count++ count {
            count--;
        } count-- count if(inputString.charAt(2) == '+'){
            count++;
        } else{
            count--;
        } inputString.charAt(2) == '+' inputString.charAt(2) inputString.charAt inputString 2 '+' {
            count++;
        } count++ count {
            count--;
        } count-- count if(inputString.charAt(3) == '+'){
            count++;
        } else{
            count--;
        } inputString.charAt(3) == '+' inputString.charAt(3) inputString.charAt inputString 3 '+' {
            count++;
        } count++ count {
            count--;
        } count-- count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args){
        byte count = 0;
        Scanner sc = new Scanner(System.in);
        String inputString = sc.nextLine();
        if(inputString.charAt(0) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(1) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(2) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(3) == '+'){
            count++;
        } else{
            count--;
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args){
        byte count = 0;
        Scanner sc = new Scanner(System.in);
        String inputString = sc.nextLine();
        if(inputString.charAt(0) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(1) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(2) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(3) == '+'){
            count++;
        } else{
            count--;
        }
        System.out.println(count);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        byte count = 0;
        Scanner sc = new Scanner(System.in);
        String inputString = sc.nextLine();
        if(inputString.charAt(0) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(1) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(2) == '+'){
            count++;
        } else{
            count--;
        }
        if(inputString.charAt(3) == '+'){
            count++;
        } else{
            count--;
        }
        System.out.println(count);
    }
}