
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String s1 = s.next();
        int count = 0, res = 0;
        int count1 = 0, res1 = 0;
        for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        }
        System.out.println(-count + count1);

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String s1 = s.next();
        int count = 0, res = 0;
        int count1 = 0, res1 = 0;
        for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        }
        System.out.println(-count + count1);

    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String s1 = s.next();
        int count = 0, res = 0;
        int count1 = 0, res1 = 0;
        for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        }
        System.out.println(-count + count1);

    } main {
        Scanner s = new Scanner(System.in);
        String s1 = s.next();
        int count = 0, res = 0;
        int count1 = 0, res1 = 0;
        for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        }
        System.out.println(-count + count1);

    } Scanner s = new Scanner(System.in); s new Scanner(System.in) String s1 = s.next(); s1 s.next() s.next s int count = 0 count 0 res = 0; res 0 int count1 = 0 count1 0 res1 = 0; res1 0 for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        } int i = 0; int i = 0; i 0 i < s1.length() i s1.length() s1.length s1 i++ i++ i {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        } {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        } if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            } s1.charAt(i) == '-' s1.charAt(i) s1.charAt s1 i '-' {
                count++;
            } count++ count {
                count1++;
            } count1++ count1 System.out.println(-count + count1) System.out.println System.out System System.out -count + count1 -count count count1 String[] args args public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String s1 = s.next();
        int count = 0, res = 0;
        int count1 = 0, res1 = 0;
        for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        }
        System.out.println(-count + count1);

    }
} public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String s1 = s.next();
        int count = 0, res = 0;
        int count1 = 0, res1 = 0;
        for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        }
        System.out.println(-count + count1);

    }
} Main

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String s1 = s.next();
        int count = 0, res = 0;
        int count1 = 0, res1 = 0;
        for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i) == '-') {
                count++;
            } else {
                count1++;
            }

        }
        System.out.println(-count + count1);

    }
}
