import scala.io.StdIn._
object Main{
  def main(args: Array[String]): Unit = {
    val s = readLine
    var c = 0
    if(s.length!=4) return
    for(i <- 0 to 3){
      if(s.charAt(i)=='+') c += 1
      else if(s.charAt(i)=='-') c-=1
    }
    println(c.toString)
  }
}
