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 s = StdIn.readLine.split(" ")
  val o1 = s(0)(0)
  val o2 = s(1)(0)
  val o3 = s(2)(0)
  val o4 = s(3)(0)
  var r = 0
  r = fun(o1, r)
  r = fun(o2, r)
  r = fun(o3, r)
  r = fun(o4, r)
  println(r)
}