import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char c[] = new char[4];
		String s = sc.nextLine();
		int num = 0;
		for(int i=0;i<4;i++) {
			c[i] = s.charAt(i);
			if(c[i] == '+')num++;
			else if(c[i] == '-')num--;
		}
		System.out.print(num);
	}
}