import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        char[] a = sc.next().toCharArray();
        int ans = 0;
        for (char b : a) {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        char[] a = sc.next().toCharArray();
        int ans = 0;
        for (char b : a) {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    } main {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    } try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        } {
            solve(sc);
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) solve(sc) solve sc String[] args args public static void solve(Scanner sc) {
        char[] a = sc.next().toCharArray();
        int ans = 0;
        for (char b : a) {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        }
        System.out.println(ans);
    } solve {
        char[] a = sc.next().toCharArray();
        int ans = 0;
        for (char b : a) {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        }
        System.out.println(ans);
    } char[] a = sc.next().toCharArray(); a sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int ans = 0; ans 0 for (char b : a) {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        } char b a {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        } {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        } switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            } b case '+': '+' case '+': ans++ ans break; case '-': '-' case '-': ans-- ans break; System.out.println(ans) System.out.println System.out System System.out ans Scanner sc sc public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        char[] a = sc.next().toCharArray();
        int ans = 0;
        for (char b : a) {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        char[] a = sc.next().toCharArray();
        int ans = 0;
        for (char b : a) {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        char[] a = sc.next().toCharArray();
        int ans = 0;
        for (char b : a) {
            switch (b) {
            case '+':
                ans++;
                break;
            case '-':
                ans--;
                break;
            }
        }
        System.out.println(ans);
    }
}