import java.util.Scanner;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] kigo = str.split("");
        int sum=0;
        for(int i=0;i<kigo.length;i++){
            if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            }
        }
        System.out.println(sum);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] kigo = str.split("");
        int sum=0;
        for(int i=0;i<kigo.length;i++){
            if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            }
        }
        System.out.println(sum);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] kigo = str.split("");
        int sum=0;
        for(int i=0;i<kigo.length;i++){
            if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            }
        }
        System.out.println(sum);
    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] kigo = str.split("");
        int sum=0;
        for(int i=0;i<kigo.length;i++){
            if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            }
        }
        System.out.println(sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc String[] kigo = str.split(""); kigo str.split("") str.split str "" int sum=0; sum 0 for(int i=0;i<kigo.length;i++){
            if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            }
        } int i=0; int i=0; i 0 i<kigo.length i kigo.length kigo kigo.length i++ i++ i {
            if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            }
        } {
            if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            }
        } if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            } kigo[i].equals("+") kigo[i].equals kigo[i] kigo i "+" {
                sum=sum+1;
            } sum=sum+1 sum sum+1 sum 1 {
                sum=sum-1;
            } sum=sum-1 sum sum-1 sum 1 System.out.println(sum) System.out.println System.out System System.out sum String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] kigo = str.split("");
        int sum=0;
        for(int i=0;i<kigo.length;i++){
            if(kigo[i].equals("+")){
                sum=sum+1;
            }else{
                sum=sum-1;
            }
        }
        System.out.println(sum);
    }
}