import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int score = 0;

        for (int i = 0; i < s.length(); i++) {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        }

        System.out.println(score);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int score = 0;

        for (int i = 0; i < s.length(); i++) {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        }

        System.out.println(score);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int score = 0;

        for (int i = 0; i < s.length(); i++) {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        }

        System.out.println(score);
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int score = 0;

        for (int i = 0; i < s.length(); i++) {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        }

        System.out.println(score);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int score = 0; score 0 for (int i = 0; i < s.length(); i++) {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        } {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        } switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            } s.charAt(i) s.charAt s i case '+': '+' case '+': score += 1 score 1 break; case '-': '-' case '-': score -= 1 score 1 break; default: default: break; System.out.println(score) System.out.println System.out System System.out score String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int score = 0;

        for (int i = 0; i < s.length(); i++) {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        }

        System.out.println(score);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int score = 0;

        for (int i = 0; i < s.length(); i++) {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        }

        System.out.println(score);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int score = 0;

        for (int i = 0; i < s.length(); i++) {
            switch (s.charAt(i)) {
                case '+':
                    score += 1;
                    break;
                case '-':
                    score -= 1;
                    break;
                default:
                    break;
            }
        }

        System.out.println(score);
    }
}
