const main = (input) => {
  input = input.trim();
  input = input.split('');
  const a = input[0];
  const b = input[1];
  const c = input[2];
  const d = input[3];
  const s = a+b+c+d;
  
  if(s=="+---"){
    console.log(-2);
  }else if(s=="+++-"){
    console.log(2);
  }else if(s=="++++"){
    console.log(4);
  }else if(s=="----"){
    console.log(-4);
  }else{
    console.log(0);
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));