
fun main(args: Array<String>){
    val s = readLine()!!
    var num = 0
    for(i in 0 until 4){
        if(s[i] == '+'){
            num++
        }else{
            num--
        }
    }
    println(num)
}
