#include <iostream>

int main(){
    std::cin >> i1 >> i2 >> i3 >> i4;
    std::vector<string> str = { i1, i2, i3, i4};
    int result = 0;
    for (std::size_t i = 0; i < str.size(); ++i) {
       if (str[i] = +) {
           result++;
       } else (str[i] = -) {
           result—;
       }
    }
    std::cout << result << std::endl;
    return 0;
}
