
import java.util.Scanner;

public class  Main{
    public static void main(String[] args){
        Scanner sr = new Scanner(System.in);
        String inputLine = sr.nextLine();
        int result = 0;
        if(inputLine.length() == 4){
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        }
        System.out.println(result);
    }

} import java.util.Scanner; Scanner java.util public class  Main{
    public static void main(String[] args){
        Scanner sr = new Scanner(System.in);
        String inputLine = sr.nextLine();
        int result = 0;
        if(inputLine.length() == 4){
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        }
        System.out.println(result);
    }

} Main public static void main(String[] args){
        Scanner sr = new Scanner(System.in);
        String inputLine = sr.nextLine();
        int result = 0;
        if(inputLine.length() == 4){
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        }
        System.out.println(result);
    } main {
        Scanner sr = new Scanner(System.in);
        String inputLine = sr.nextLine();
        int result = 0;
        if(inputLine.length() == 4){
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        }
        System.out.println(result);
    } Scanner sr = new Scanner(System.in); sr new Scanner(System.in) String inputLine = sr.nextLine(); inputLine sr.nextLine() sr.nextLine sr int result = 0; result 0 if(inputLine.length() == 4){
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        } inputLine.length() == 4 inputLine.length() inputLine.length inputLine 4 {
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        } for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            } int i = 0; int i = 0; i 0 i < inputLine.length() i inputLine.length() inputLine.length inputLine i++ i++ i {
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            } {
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            } String plusOrMinus =inputLine .substring(i,i+1); plusOrMinus inputLine .substring(i,i+1) inputLine .substring inputLine i i+1 i 1 if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                } plusOrMinus.equals("+") plusOrMinus.equals plusOrMinus "+" {
                    result ++;
                } result ++ result {
                    result--;
                } result-- result System.out.println(result) System.out.println System.out System System.out result String[] args args public class  Main{
    public static void main(String[] args){
        Scanner sr = new Scanner(System.in);
        String inputLine = sr.nextLine();
        int result = 0;
        if(inputLine.length() == 4){
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        }
        System.out.println(result);
    }

} public class  Main{
    public static void main(String[] args){
        Scanner sr = new Scanner(System.in);
        String inputLine = sr.nextLine();
        int result = 0;
        if(inputLine.length() == 4){
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        }
        System.out.println(result);
    }

} Main

import java.util.Scanner;

public class  Main{
    public static void main(String[] args){
        Scanner sr = new Scanner(System.in);
        String inputLine = sr.nextLine();
        int result = 0;
        if(inputLine.length() == 4){
            for (int i = 0; i < inputLine.length(); i++){
                String plusOrMinus =inputLine .substring(i,i+1);
                if(plusOrMinus.equals("+")){
                    result ++;
                }else{
                    result--;
                }
            }
        }
        System.out.println(result);
    }

}
