import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
 
 
class Main
{
    public static void main(String[] args)
    {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            }
        }
        
        System.out.println(ans);
        scanner.close();
    }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util class Main
{
    public static void main(String[] args)
    {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            }
        }
        
        System.out.println(ans);
        scanner.close();
    }
} Main public static void main(String[] args)
    {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            }
        }
        
        System.out.println(ans);
        scanner.close();
    } main {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            }
        }
        
        System.out.println(ans);
        scanner.close();
    } int ans = 0; ans 0 int count = 0; count 0 int a; a Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String n = scanner.next(); n scanner.next() scanner.next scanner String[] ar = n.split(""); ar n.split("") n.split n "" a = n.length() a n.length() n.length n for(int i = 0; i < a;i++){
            switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            }
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            }
        } {
            switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            }
        } switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            } ar[i] ar i case "+": "+" case "+": ans = ans + 1 ans ans + 1 ans 1 break; case "-": "-" case "-": ans = ans - 1 ans ans - 1 ans 1 break; System.out.println(ans) System.out.println System.out System System.out ans scanner.close() scanner.close scanner String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
 
 
class Main
{
    public static void main(String[] args)
    {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            switch (ar[i]){
                case "+":
                    ans = ans + 1;
                    break;
                case "-":
                    ans = ans - 1;
                    break;
            }
        }
        
        System.out.println(ans);
        scanner.close();
    }
}