import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char s[] = new char[4];
		int think = 0;
		for(int i = 0; i < 4; i++) {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		}
		System.out.println(think);

	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char s[] = new char[4];
		int think = 0;
		for(int i = 0; i < 4; i++) {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		}
		System.out.println(think);

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char s[] = new char[4];
		int think = 0;
		for(int i = 0; i < 4; i++) {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		}
		System.out.println(think);

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char s[] = new char[4];
		int think = 0;
		for(int i = 0; i < 4; i++) {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		}
		System.out.println(think);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char s[] = new char[4]; s new char[4] 4 int think = 0; think 0 for(int i = 0; i < 4; i++) {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		} {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char s[] = new char[4];
		int think = 0;
		for(int i = 0; i < 4; i++) {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		}
		System.out.println(think);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char s[] = new char[4];
		int think = 0;
		for(int i = 0; i < 4; i++) {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		}
		System.out.println(think);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char s[] = new char[4];
		int think = 0;
		for(int i = 0; i < 4; i++) {
			s[i] = S.charAt(i);
			if(s[i] == '+')think++;
			else if(s[i] == '-')think--;

		}
		System.out.println(think);

	}

}
