import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    var inputStr: CharArray = scanner.next().toCharArray()
    var result: Int = 0
    for (input in inputStr) {
        if (input.equals("+")) {
            result++
        } else {
            result--
        }
    }
    System.out.print(result)
}