import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		scan.close();
		int cnt=0;
		for(int i=0;i<s.length();i++) {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		}
		System.out.println(cnt);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		scan.close();
		int cnt=0;
		for(int i=0;i<s.length();i++) {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		}
		System.out.println(cnt);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		scan.close();
		int cnt=0;
		for(int i=0;i<s.length();i++) {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		}
		System.out.println(cnt);
	} main {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		scan.close();
		int cnt=0;
		for(int i=0;i<s.length();i++) {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		}
		System.out.println(cnt);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan scan.close() scan.close scan int cnt=0; cnt 0 for(int i=0;i<s.length();i++) {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		} int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		} {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		} if(s.charAt(i)=='+')cnt++;
			else cnt--; s.charAt(i)=='+' s.charAt(i) s.charAt s i '+' cnt++ cnt cnt-- cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		scan.close();
		int cnt=0;
		for(int i=0;i<s.length();i++) {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		}
		System.out.println(cnt);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		scan.close();
		int cnt=0;
		for(int i=0;i<s.length();i++) {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		}
		System.out.println(cnt);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		scan.close();
		int cnt=0;
		for(int i=0;i<s.length();i++) {
			if(s.charAt(i)=='+')cnt++;
			else cnt--;
		}
		System.out.println(cnt);
	}
}
