import scala.io.StdIn._
object Main extends App{
  val sc = new java.util.Scanner(System.in)
  val s = sc.next
  var ans =0
  for(i <- 0 to 3){
    if(s.charAt(i)=='+'){
     ans+=1
    }
    else{
      ans-=1
    }
  }
  println(ans)
}