
#include <iostream>
#include <cmath>
#include <string>
#include <typeinfo>
#include <climits>
#include <algorithm>
#include <cctype>
#include <stdio.h>
#include <cstdlib>
using namespace std;

int main(){
    char s[];
    cin >> s;
    cout << 0-count(s,s+4,'+')-count(s,s+4,'-');
}