import java.util.Scanner;
class Main
{
static Scanner scan = new Scanner(System.in);
    public static void main(String[] args) {
        int takahashi = 0;
        String str = scan.next();

        for(int i =0 ;i<str.length();i++)
        {
            String s = String.valueOf(str.charAt(i));
            switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            }
        }
        System.out.println(takahashi);
    }

} import java.util.Scanner; Scanner java.util class Main
{
static Scanner scan = new Scanner(System.in);
    public static void main(String[] args) {
        int takahashi = 0;
        String str = scan.next();

        for(int i =0 ;i<str.length();i++)
        {
            String s = String.valueOf(str.charAt(i));
            switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            }
        }
        System.out.println(takahashi);
    }

} Main static Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args) {
        int takahashi = 0;
        String str = scan.next();

        for(int i =0 ;i<str.length();i++)
        {
            String s = String.valueOf(str.charAt(i));
            switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            }
        }
        System.out.println(takahashi);
    } main {
        int takahashi = 0;
        String str = scan.next();

        for(int i =0 ;i<str.length();i++)
        {
            String s = String.valueOf(str.charAt(i));
            switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            }
        }
        System.out.println(takahashi);
    } int takahashi = 0; takahashi 0 String str = scan.next(); str scan.next() scan.next scan for(int i =0 ;i<str.length();i++)
        {
            String s = String.valueOf(str.charAt(i));
            switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            }
        } int i =0 ; int i =0 ; i 0 i<str.length() i str.length() str.length str i++ i++ i {
            String s = String.valueOf(str.charAt(i));
            switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            }
        } {
            String s = String.valueOf(str.charAt(i));
            switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            }
        } String s = String.valueOf(str.charAt(i)); s String.valueOf(str.charAt(i)) String.valueOf String str.charAt(i) str.charAt str i switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            } s case "+": "+" case "+": takahashi++ takahashi break; case "-": "-" case "-": takahashi-- takahashi break; default : default : break; System.out.println(takahashi) System.out.println System.out System System.out takahashi String[] args args
import java.util.Scanner;
class Main
{
static Scanner scan = new Scanner(System.in);
    public static void main(String[] args) {
        int takahashi = 0;
        String str = scan.next();

        for(int i =0 ;i<str.length();i++)
        {
            String s = String.valueOf(str.charAt(i));
            switch(s){
                case "+":
                takahashi++;
                break;
                case "-":
                takahashi--;
                break;
                default :
                break;
            }
        }
        System.out.println(takahashi);
    }

}