import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		
		int ans=0;
		for(int i=0;i<4;i++) {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		}
		
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		
		int ans=0;
		for(int i=0;i<4;i++) {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		}
		
		System.out.println(ans);
	}
} Main @SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		
		int ans=0;
		for(int i=0;i<4;i++) {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		}
		
		System.out.println(ans);
	} main {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		
		int ans=0;
		for(int i=0;i<4;i++) {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		}
		
		System.out.println(ans);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.next(); s scanner.next() scanner.next scanner int ans=0; ans 0 for(int i=0;i<4;i++) {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		} {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		} ans=(s.charAt(i)=='+')?ans+1:ans-1 ans (s.charAt(i)=='+')?ans+1:ans-1 (s.charAt(i)=='+') s.charAt(i) s.charAt s i '+' ans+1 ans 1 ans-1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans String args[] args public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		
		int ans=0;
		for(int i=0;i<4;i++) {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		}
		
		System.out.println(ans);
	}
} public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		
		int ans=0;
		for(int i=0;i<4;i++) {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		}
		
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		
		int ans=0;
		for(int i=0;i<4;i++) {
			ans=(s.charAt(i)=='+')?ans+1:ans-1;
		}
		
		System.out.println(ans);
	}
}
