import java.util.Scanner

object Main{
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)

    val S = sc.next()
    var num = 0

    for (i <- S){
      if (i == '+') {
        num += 1
      } else {
        num -= 1
      }
    }
    println(num)
  }
}