object Main extends App {
    val s = scala.io.StdIn.readLine()

    var cnt:Int = 0
    for (i<-0 to 3) {
      s(i) match {
        case '+' => cnt = cnt + 1
        case '-' => cnt = cnt - 1
      }
    }
    println(cnt)
}