import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner seer = new Scanner(System.in);
		char[] s = seer.next().toCharArray();
		int res = 0;
		for(char c: s){
			if(c == '+') res++;
			else res--;
		}
		System.out.println(res);
	}

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

	public static void main(String[] args) {
		Scanner seer = new Scanner(System.in);
		char[] s = seer.next().toCharArray();
		int res = 0;
		for(char c: s){
			if(c == '+') res++;
			else res--;
		}
		System.out.println(res);
	}

} Main public static void main(String[] args) {
		Scanner seer = new Scanner(System.in);
		char[] s = seer.next().toCharArray();
		int res = 0;
		for(char c: s){
			if(c == '+') res++;
			else res--;
		}
		System.out.println(res);
	} main {
		Scanner seer = new Scanner(System.in);
		char[] s = seer.next().toCharArray();
		int res = 0;
		for(char c: s){
			if(c == '+') res++;
			else res--;
		}
		System.out.println(res);
	} Scanner seer = new Scanner(System.in); seer new Scanner(System.in) char[] s = seer.next().toCharArray(); s seer.next().toCharArray() seer.next().toCharArray seer.next() seer.next seer int res = 0; res 0 for(char c: s){
			if(c == '+') res++;
			else res--;
		} char c s {
			if(c == '+') res++;
			else res--;
		} {
			if(c == '+') res++;
			else res--;
		} if(c == '+') res++;
			else res--; c == '+' c '+' res++ res res-- res System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

	public static void main(String[] args) {
		Scanner seer = new Scanner(System.in);
		char[] s = seer.next().toCharArray();
		int res = 0;
		for(char c: s){
			if(c == '+') res++;
			else res--;
		}
		System.out.println(res);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner seer = new Scanner(System.in);
		char[] s = seer.next().toCharArray();
		int res = 0;
		for(char c: s){
			if(c == '+') res++;
			else res--;
		}
		System.out.println(res);
	}

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

	public static void main(String[] args) {
		Scanner seer = new Scanner(System.in);
		char[] s = seer.next().toCharArray();
		int res = 0;
		for(char c: s){
			if(c == '+') res++;
			else res--;
		}
		System.out.println(res);
	}

}
