import java.util.*;

public class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		String aa=" ";
		aa=sc.next();
		int a=0;
		char[] b=new char[aa.length()];
		for(int i=0;i<aa.length();i++)
		{
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		}
		System.out.println(a);
	}
} import java.util.*; util.* java public class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		String aa=" ";
		aa=sc.next();
		int a=0;
		char[] b=new char[aa.length()];
		for(int i=0;i<aa.length();i++)
		{
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		}
		System.out.println(a);
	}
} Main public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		String aa=" ";
		aa=sc.next();
		int a=0;
		char[] b=new char[aa.length()];
		for(int i=0;i<aa.length();i++)
		{
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		}
		System.out.println(a);
	} main {
		Scanner sc=new Scanner(System.in);
		String aa=" ";
		aa=sc.next();
		int a=0;
		char[] b=new char[aa.length()];
		for(int i=0;i<aa.length();i++)
		{
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		}
		System.out.println(a);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String aa=" "; aa " " aa=sc.next() aa sc.next() sc.next sc int a=0; a 0 char[] b=new char[aa.length()]; b new char[aa.length()] aa.length() aa.length aa for(int i=0;i<aa.length();i++)
		{
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		} int i=0; int i=0; i 0 i<aa.length() i aa.length() aa.length aa i++ i++ i {
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		} {
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		} b[i]=aa.charAt(i) b[i] b i aa.charAt(i) aa.charAt aa i if(b[i]=='+')
			{a++;}
			else
			{a--;} b[i]=='+' b[i] b i '+' {a++;} a++ a {a--;} a-- a System.out.println(a) System.out.println System.out System System.out a String args[] args public class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		String aa=" ";
		aa=sc.next();
		int a=0;
		char[] b=new char[aa.length()];
		for(int i=0;i<aa.length();i++)
		{
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		}
		System.out.println(a);
	}
} public class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		String aa=" ";
		aa=sc.next();
		int a=0;
		char[] b=new char[aa.length()];
		for(int i=0;i<aa.length();i++)
		{
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		}
		System.out.println(a);
	}
} Main
import java.util.*;

public class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		String aa=" ";
		aa=sc.next();
		int a=0;
		char[] b=new char[aa.length()];
		for(int i=0;i<aa.length();i++)
		{
			b[i]=aa.charAt(i);
			if(b[i]=='+')
			{a++;}
			else
			{a--;}
		}
		System.out.println(a);
	}
}