import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) throws Exception {
        String line = readLine();
        StringTokenizer st = new StringTokenizer(line, " ");
        String input = st.nextToken();
        String[] kigou = input.split("");
        int counter = 0;

        for (String tmp:kigou) {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        }

        System.out.println(counter);

    }

    private static String readLine() throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args) throws Exception {
        String line = readLine();
        StringTokenizer st = new StringTokenizer(line, " ");
        String input = st.nextToken();
        String[] kigou = input.split("");
        int counter = 0;

        for (String tmp:kigou) {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        }

        System.out.println(counter);

    }

    private static String readLine() throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }
} Main public static void main(String[] args) throws Exception {
        String line = readLine();
        StringTokenizer st = new StringTokenizer(line, " ");
        String input = st.nextToken();
        String[] kigou = input.split("");
        int counter = 0;

        for (String tmp:kigou) {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        }

        System.out.println(counter);

    } main {
        String line = readLine();
        StringTokenizer st = new StringTokenizer(line, " ");
        String input = st.nextToken();
        String[] kigou = input.split("");
        int counter = 0;

        for (String tmp:kigou) {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        }

        System.out.println(counter);

    } String line = readLine(); line readLine() readLine StringTokenizer st = new StringTokenizer(line, " "); st new StringTokenizer(line, " ") String input = st.nextToken(); input st.nextToken() st.nextToken st String[] kigou = input.split(""); kigou input.split("") input.split input "" int counter = 0; counter 0 for (String tmp:kigou) {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        } String tmp kigou {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        } {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        } if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	} tmp.equals("+") tmp.equals tmp "+" {
        		counter++;
        	} counter++ counter {
        		counter--;
        	} counter-- counter System.out.println(counter) System.out.println System.out System System.out counter String[] args args private static String readLine() throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    } readLine {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) return br.readLine(); br.readLine() br.readLine br public class Main {
    public static void main(String[] args) throws Exception {
        String line = readLine();
        StringTokenizer st = new StringTokenizer(line, " ");
        String input = st.nextToken();
        String[] kigou = input.split("");
        int counter = 0;

        for (String tmp:kigou) {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        }

        System.out.println(counter);

    }

    private static String readLine() throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        String line = readLine();
        StringTokenizer st = new StringTokenizer(line, " ");
        String input = st.nextToken();
        String[] kigou = input.split("");
        int counter = 0;

        for (String tmp:kigou) {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        }

        System.out.println(counter);

    }

    private static String readLine() throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) throws Exception {
        String line = readLine();
        StringTokenizer st = new StringTokenizer(line, " ");
        String input = st.nextToken();
        String[] kigou = input.split("");
        int counter = 0;

        for (String tmp:kigou) {
        	if (tmp.equals("+")) {
        		counter++;
        	}else {
        		counter--;
        	}
        }

        System.out.println(counter);

    }

    private static String readLine() throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        return br.readLine();
    }
}