import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   int count = 0;
		   String  s = scanner.nextLine();
		   
		   for(int i = 0; i < s.length();) 
		   {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   }
		    
		   System.out.println(count);
		   
		    scanner.close(); }
		  } import java.util.Scanner; Scanner java.util public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   int count = 0;
		   String  s = scanner.nextLine();
		   
		   for(int i = 0; i < s.length();) 
		   {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   }
		    
		   System.out.println(count);
		   
		    scanner.close(); }
		  } Main public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   int count = 0;
		   String  s = scanner.nextLine();
		   
		   for(int i = 0; i < s.length();) 
		   {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   }
		    
		   System.out.println(count);
		   
		    scanner.close(); } main {
		    Scanner scanner = new Scanner(System.in);
		    
		   int count = 0;
		   String  s = scanner.nextLine();
		   
		   for(int i = 0; i < s.length();) 
		   {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   }
		    
		   System.out.println(count);
		   
		    scanner.close(); } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int count = 0; count 0 String  s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner for(int i = 0; i < s.length();) 
		   {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   } {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   } if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   } s.substring(i, i + 1 ).equals("+") s.substring(i, i + 1 ).equals s.substring(i, i + 1 ) s.substring s i i + 1 i 1 "+" {
				   count = count + 1;
			   } count = count + 1 count count + 1 count 1 {
				   count = count - 1;
			   } count = count - 1 count count - 1 count 1 i = i + 1 i i + 1 i 1 System.out.println(count) System.out.println System.out System System.out count scanner.close() scanner.close scanner String args[] args public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   int count = 0;
		   String  s = scanner.nextLine();
		   
		   for(int i = 0; i < s.length();) 
		   {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   }
		    
		   System.out.println(count);
		   
		    scanner.close(); }
		  } public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   int count = 0;
		   String  s = scanner.nextLine();
		   
		   for(int i = 0; i < s.length();) 
		   {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   }
		    
		   System.out.println(count);
		   
		    scanner.close(); }
		  } Main
import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   int count = 0;
		   String  s = scanner.nextLine();
		   
		   for(int i = 0; i < s.length();) 
		   {
			   if(s.substring(i, i + 1 ).equals("+"))
			   {
				   count = count + 1;
			   }
			   else 
			   {
				   count = count - 1;
			   }
				i = i + 1;   
				   
		   }
		    
		   System.out.println(count);
		   
		    scanner.close(); }
		  }