import std.stdio, std.algorithm, std.string, std.conv, std.array, std.range, std.math;
int read() { return readln.chomp.to!int; }
int[] reads() { return readln.split.to!(int[]); }


void solve() {
    string s = readln;
    writeln(s.count('+').to!int - s.count('-').to!int);
}

void main() {
    solve();
    readln;
}