import java.util.Scanner

fun main(args: Array<String>) {
  val cin = Scanner(System.`in`)
  val s = cin.next()

  var res = 0

  for (i in s) {
    if (i == '+') {
      res++
    } else {
      res--
    }
  }

  println(res)
  cin.close()
}