import java.util.*;

public class Main{
  public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
   String  s = sc.next();
   char[] leader = s.toCharArray();
   int count1 = 0;
   int count2 = 0;
   for(int i = 0; i < 4; i++){
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   }
   System.out.println(count1 - count2);
 }

} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
   String  s = sc.next();
   char[] leader = s.toCharArray();
   int count1 = 0;
   int count2 = 0;
   for(int i = 0; i < 4; i++){
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   }
   System.out.println(count1 - count2);
 }

} Main public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
   String  s = sc.next();
   char[] leader = s.toCharArray();
   int count1 = 0;
   int count2 = 0;
   for(int i = 0; i < 4; i++){
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   }
   System.out.println(count1 - count2);
 } main {
   Scanner sc = new Scanner(System.in);
   String  s = sc.next();
   char[] leader = s.toCharArray();
   int count1 = 0;
   int count2 = 0;
   for(int i = 0; i < 4; i++){
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   }
   System.out.println(count1 - count2);
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String  s = sc.next(); s sc.next() sc.next sc char[] leader = s.toCharArray(); leader s.toCharArray() s.toCharArray s int count1 = 0; count1 0 int count2 = 0; count2 0 for(int i = 0; i < 4; i++){
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   } {
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   } if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     } leader[i] == '+' leader[i] leader i '+' {
       count1++;
     } count1++ count1 {
       count2++;
     } count2++ count2 System.out.println(count1 - count2) System.out.println System.out System System.out count1 - count2 count1 count2 String[] args args public class Main{
  public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
   String  s = sc.next();
   char[] leader = s.toCharArray();
   int count1 = 0;
   int count2 = 0;
   for(int i = 0; i < 4; i++){
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   }
   System.out.println(count1 - count2);
 }

} public class Main{
  public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
   String  s = sc.next();
   char[] leader = s.toCharArray();
   int count1 = 0;
   int count2 = 0;
   for(int i = 0; i < 4; i++){
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   }
   System.out.println(count1 - count2);
 }

} Main
import java.util.*;

public class Main{
  public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
   String  s = sc.next();
   char[] leader = s.toCharArray();
   int count1 = 0;
   int count2 = 0;
   for(int i = 0; i < 4; i++){
     if(leader[i] == '+'){
       count1++;
     }else{
       count2++;
     }
   }
   System.out.println(count1 - count2);
 }

}
