import scala.io.StdIn

object Main extends App {
  def fun(o: Char, operand: Int): Int = {
    if (o == '+') {
      operand + 1
    } else if (o == '-') {
      operand - 1
    } else {
      operand
    }
  }

  val a = StdIn.readLine.toCharArray
  var r = 0
  r = fun(a(0), r)
  r = fun(a(1), r)
  r = fun(a(2), r)
  r = fun(a(3), r)
  println(r)
}