import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		int n = 0;
		Scanner s = new Scanner(System.in);
		String l = s.nextLine();
		
		for (int i = 0; i < 4; i++)
		{
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		}
		s.close();
		System.out.println(n);
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		int n = 0;
		Scanner s = new Scanner(System.in);
		String l = s.nextLine();
		
		for (int i = 0; i < 4; i++)
		{
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		}
		s.close();
		System.out.println(n);
	}
} Main public static void main(String[] args)
	{
		int n = 0;
		Scanner s = new Scanner(System.in);
		String l = s.nextLine();
		
		for (int i = 0; i < 4; i++)
		{
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		}
		s.close();
		System.out.println(n);
	} main {
		int n = 0;
		Scanner s = new Scanner(System.in);
		String l = s.nextLine();
		
		for (int i = 0; i < 4; i++)
		{
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		}
		s.close();
		System.out.println(n);
	} int n = 0; n 0 Scanner s = new Scanner(System.in); s new Scanner(System.in) String l = s.nextLine(); l s.nextLine() s.nextLine s for (int i = 0; i < 4; i++)
		{
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		} {
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		} n = l.charAt(i) == '+' ? n + 1 : n - 1 n l.charAt(i) == '+' ? n + 1 : n - 1 l.charAt(i) == '+' l.charAt(i) l.charAt l i '+' n + 1 n 1 n - 1 n 1 s.close() s.close s System.out.println(n) System.out.println System.out System System.out n String[] args args public class Main
{
	public static void main(String[] args)
	{
		int n = 0;
		Scanner s = new Scanner(System.in);
		String l = s.nextLine();
		
		for (int i = 0; i < 4; i++)
		{
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		}
		s.close();
		System.out.println(n);
	}
} public class Main
{
	public static void main(String[] args)
	{
		int n = 0;
		Scanner s = new Scanner(System.in);
		String l = s.nextLine();
		
		for (int i = 0; i < 4; i++)
		{
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		}
		s.close();
		System.out.println(n);
	}
} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		int n = 0;
		Scanner s = new Scanner(System.in);
		String l = s.nextLine();
		
		for (int i = 0; i < 4; i++)
		{
			n = l.charAt(i) == '+' ? n + 1 : n - 1;
		}
		s.close();
		System.out.println(n);
	}
}