import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        in.close();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        in.close();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        in.close();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        System.out.println(ans);
    } main {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        in.close();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        System.out.println(ans);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String str = in.nextLine(); str in.nextLine() in.nextLine in in.close() in.close in int ans = 0; ans 0 for (int i = 0; i < 4; i++) {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        } {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        } if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            } str.charAt(i) == '+' str.charAt(i) str.charAt str i '+' {
                ans++;
            } ans++ ans {
                ans--;
            } ans-- ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        in.close();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        in.close();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        in.close();
        int ans = 0;
        for (int i = 0; i < 4; i++) {
            if (str.charAt(i) == '+') {
                ans++;
            } else {
                ans--;
            }
        }
        System.out.println(ans);
    }
}