<?php
  fscanf(STDIN,'%s',$S);
  $arr = str_split($s);
  $count1=0;
  $count2=0;
  for($i=0;$i<=3;$i++){
  if($arr[$i]='+'){
    $count1+=1;
  }else{
    $count2+=1;
  }
  }
echo $count1-$count2 ;
  
  
  
  
  
  
  
  
  ?>