import java.util.*

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