import java.io.*;
import java.util.*;
import java.math.*;

public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java import java.math.*; math.* java public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		}
	}
} Main static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) static int tc; tc static final int MOD=1_000_000_007; MOD 1_000_000_007 public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	} inputArray {
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	} String[] s=str.split(" "); s str.split(" ") str.split str " " long[] array=new long[s.length]; array new long[s.length] s.length s s.length for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		} int i=0; int i=0; i 0 i<s.length i s.length s s.length i++ i++ i {
			array[i]=Long.parseLong(s[i]);
		} {
			array[i]=Long.parseLong(s[i]);
		} array[i]=Long.parseLong(s[i]) array[i] array i Long.parseLong(s[i]) Long.parseLong Long s[i] s i return array; array String str str public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		}
	} main {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		}
	} tc=1 tc 1 while(tc-->0) {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		} tc-->0 tc-- tc 0 {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		} String str=br.readLine(); str br.readLine() br.readLine br int plus=0; plus 0 int minus=0; minus 0 for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			} int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			} {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			} if(str.charAt(i)=='+')
					plus++;
				else
					minus++; str.charAt(i)=='+' str.charAt(i) str.charAt str i '+' plus++ plus minus++ minus System.out.println(plus-minus) System.out.println System.out System System.out plus-minus plus minus String[] args args public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		}
	}
} public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		}
	}
} Main
import java.io.*;
import java.util.*;
import java.math.*;

public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			int plus=0;
			int minus=0;
			for(int i=0;i<str.length();i++) {
				if(str.charAt(i)=='+')
					plus++;
				else
					minus++;
			}
			System.out.println(plus-minus);
		}
	}
}