import java.util.*;

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